#include <Phase_i.h>
Public Member Functions | |
| Phase_i (Phase *sp) | |
| void | setState (const phases::PhaseState &ss) throw (phases::dPhase::PhaseError) |
| single call set of phase state.Structure members can be set independently | |
| void | setTk (CORBA::Double tk) throw (phases::dPhase::PhaseError) |
| set temperature in Kelvins | |
| void | setPa (CORBA::Double pa) throw (phases::dPhase::PhaseError) |
| set pressure in Pascal | |
| void | setMoles (CORBA::Double m) throw (phases::dPhase::PhaseError) |
| set total number of moles | |
| void | setMass (CORBA::Double w) throw (phases::dPhase::PhaseError) |
| set total weight in kg | |
| void | setComps (const CORBA::DoubleSeq &c) throw (phases::dPhase::PhaseError) |
| set component moles | |
| void | setGenericWts (const CORBA::DoubleSeq &c) throw (phases::dPhase::PhaseError) |
| set generic component (1-2 element) grams | |
| char * | getName () |
| get phase name | |
| char * | getCompName (CORBA::Short i) |
| get name for component i | |
| CORBA::StringSeq * | getCompNames () |
| get list of component names | |
| CORBA::StringSeq * | getCompFormulas () |
| get list of component formulas | |
| CORBA::StringSeq * | getGenericCompFormulas () |
| get list of relevant generic (1-2 element) component formulas | |
| char * | getFormula () |
| get chemical formula for phase | |
| CORBA::Double | getMW () |
| get molecular weight (gm/mol) | |
| CORBA::UShort | getNcomp () |
| get number of components in solution | |
| phases::PhaseState * | getState () |
| get state structure for solution | |
| CORBA::Double | getTk () |
| get temperature in Kelvins | |
| CORBA::Double | getPa () |
| get pressure in Pascal | |
| CORBA::Double | getMoles () |
| get total moles | |
| CORBA::Double | getMass () |
| get weight in kg | |
| CORBA::DoubleSeq * | getComps () |
| get component moles | |
| CORBA::UShort | getGenericNcomp () |
| get number of generic (1-2 element) components | |
| CORBA::DoubleSeq * | getGenericWts () |
| get generic component (1-2 element) grams | |
| CORBA::Double | getG () |
| get Gibbs free energy in Joules | |
| CORBA::Double | getH () |
| get enthalpy in Joules | |
| CORBA::Double | getS () |
| get entropy in Joules/Kelvin | |
| CORBA::Double | getCp () |
| get constant-pressure heat capacity in Joules/Kelvin | |
| CORBA::Double | getV () |
| get volume in cubic meters | |
| CORBA::DoubleSeq * | getMu () |
| get component potentials in Joules/mole | |
| void | update () throw (phases::dPhase::PhaseError) |
| CORBA::LongLong | getLastAccessTime () |
| get time of last object access (seconds from local reference) | |
| CORBA::UShort | isActive () |
| returns 1 if there are still active references to object | |
| void | remove () |
| deactivate and remove dPhase object | |
Public Attributes | |
| int | verbose |
| if true prints detailed progress | |
Private Member Functions | |
| phases::dPhase::PhaseError | errTranslate (PhaseError *e) |
| translator method for translating c++ PhaseError to idl PhaseError | |
Private Attributes | |
| int | active |
| indicates that there are still active references to object | |
| Phase * | pobj |
| pointer to c++ Solution object | |
| time_t | lastAccessTime |
| pointer to PhaseStatus structure | |
| double * | c |
| ncomp vector for temporarily holding comps, chemical potentials etc. | |
Implemantation class for basic distributed phase. This is the interface between c++ Phase object and CORBA dPhase object.
Definition at line 17 of file Phase_i.h.
| void Phase_i::update | ( | ) | throw (phases::dPhase::PhaseError) |
update internal state. For most phases this is not used at all. It is present for synchronization of calculations in many-phase client implementations. Single-direction call does not block client. If you need to ask, you probably don't need it.
1.7.1