Computes the work done by a thermal machine. Computes the work done by a thermal machine.Controller: johnylol
According to Thermodynamics second law, a thermal machine works in cycles receiving and losing heat and receiving or doing work. (Act as a machine or refrigerator)
- The work done by a machine receiving 10J of heat and losing 4J to ambient, with cycle in clockwise direction
- Input for cycle must be -1 or 1 (counter-clockwise and clockwise), if a value different from those is inputted, the function will return 0.
in_heat The incoming heat (Any value) out_heat The lost heat to ambient(Any value) cycle The cycle direction ( 1 for clockwise, -1 for counter-clockwise )
- The work done by the machine
- Johny Void (November 2008)
Source code is available when you agree to a GP Licence.
Last Modified: 28 Nov 08 @ 08:30 Page Rendered: 2022-03-14 00:04:46