MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / setState_ps

Method setState_ps

wrappers/Modelica/src/basesolver.cpp:129–132  ·  view source on GitHub ↗

Set state from p, s, and phase ! This function sets the thermodynamic state record for the given pressure p, the specific entropy s and the specified phase. The computed values are written to the ExternalThermodynamicState property struct. Must be re-implemented in the specific solver @param p Pressure @param s Specific entropy @param phase Phase (2 for two-phase, 1 for one-phase, 0

Source from the content-addressed store, hash-verified

127 @param properties ExternalThermodynamicState property struct
128*/
129void BaseSolver::setState_ps(double& p, double& s, int& phase, ExternalThermodynamicState* const properties) {
130 // Base function returns an error if called - should be redeclared by the solver object
131 errorMessage((char*)"Internal error: setState_ps() not implemented in the Solver object");
132}
133
134//! Compute Prandtl number
135/*!

Callers 1

Calls 1

errorMessageFunction · 0.85

Tested by

no test coverage detected