Piston machine, comprising a housing with a chamber which has a substantially circle sector-shaped cross-section, a pivotal piston which is designed as a pivoting element, is arranged in the housing and comprises a first working surface , wherein the housing and the piston define at least one first variable working chamber (A1, A2, A3), a drive or output which is connected to the piston , an outlet valve which is arranged in the working chamber (A1, A2, A3) for discharging a working fluid, and an inlet valve which is arranged in the working chamber for admitting the working fluid into the working chamber (A1, A2, A3), wherein the housing has two or more housing parts which are each circle sector-shaped but are joined to one another rotated through 180 degrees and form a common cavity, wherein each housing part is associated with its own piston of the aforementioned kind, wherein two adjacent housing parts together with their pistons define at least one variable working chamber (A3), wherein two adjacent pistons are arranged rotated through 180° relative to one another in their respective housing parts , characterized in that the housing has a cooling opening in at least one housing wall for convectively cooling a side of one of the aforementioned pistons opposite the first working surface by means of a coolant, wherein the two adjacent housing parts each have a wall which has a circular arc-shaped cross-section and delimits the chamber, and a cooling opening is provided in both circular arc-shaped walls, wherein the cooling openings are arranged opposite one another so that the coolant can flow in and out from one side to the other side. a housing with a chamber which has a substantially circle sector-shaped cross-section, a pivotal piston which is designed as a pivoting element, is arranged in the housing and comprises a first working surface , wherein the housing and the piston define at least one first variable working chamber (A1, A2, A3), a drive or output which is connected to the piston , an outlet valve which is arranged in the working chamber (A1, A2, A3) for discharging a working fluid, and an inlet valve which is arranged in the working chamber for admitting the working fluid into the working chamber (A1, A2, A3), wherein the housing has two or more housing parts which are each circle sector-shaped but are joined to one another rotated through 180 degrees and form a common cavity, wherein each housing part is associated with its own piston of the aforementioned kind, wherein two adjacent housing parts together with their pistons define at least one variable working chamber (A3), wherein two adjacent pistons are arranged rotated through 180° relative to one another in their respective housing parts , characterized in that the housing has a cooling opening in at least one housing wall for convectively cooling a side of one of the aforementioned pistons opposite the first working surface by means of a coolant, wherein the two adjacent housing parts each have a wall which has a circular arc-shaped cross-section and delimits the chamber, and a cooling opening is provided in both circular arc-shaped walls, wherein the cooling openings are arranged opposite one another so that the coolant can flow in and out from one side to the other side. <EOS>