4 PANENGINE API 14
Table 2: List of PanEngine API Functions
Functions Comments
User Pointer
extern "C" PANENGINE API PanEngine*
definePanEngineUser(char* msg)
define a PanEngine
pointer
extern "C" PANENGINE API void
deletePanEngineUser(PanEngine *pUser)
delete a PanEngine
pointer
System
string pe set configuration(map<string, string>& config) set system configuration
string pe import database(pair<string, string>&
db, bool append=false, const pair<string, string>&
db to=pair<string, string>())
import thermodynamic
database
string pe export subsystem database(pair<string, string>&
db, const string subsystem name=string("sub.tdb"), const
vector<string>& comp name = vector<string>())
save a subsystem
database
string pe get component names(pair<string, string>& db,
vector<string>& comp name)
get component names in
a database
string pe deactivate component(string& comp name) suspend a component
string pe get phase names(pair<string, string>& db,
vector<string>& phase name, vector<string> comp name =
vector<string>())
get phase names in a
database with a given
set of components
string pe get phase status(pair<string, string>& db,
vector<pair<string, PAN PHASE STATUS>>& phase name status)
get phase status in a
database
string pe set phase status(pair<string, string>& db,
vector<pair<string, PAN PHASE STATUS>>& phase name status)
set phase status in a
database
Point
Calculation
string pe set calculation condition(const Pan Calculation&
calc)
set a calculation
condition
string pe calc point global(shared ptr<P Point> p pt) calculate a global phase
equilibrium for a point
string pe calc point global with initial point
(shared ptr<P Point> p pt)
calculate a global phase
equilibrium for a point
with initials
string pe calc point local with initial point
(shared ptr<P Point> p pt, bool given f=false)
calculate a local phase
equilibrium or parallel
tangent equilibrium for a
point with initials
string pe find liquidus surface(string& liquid phase name,
shared ptr<P Point> p pt)
find a liquidus surface
string pe calc liquidus slope(string& liquid phase name,
string& solvent comp name, shared ptr<P Point> p pt)
calculate liquidus slopes
Solidification
Simulation
String pe solidification simulation
(Solidification Parameter& s param, Pan Calculation& calc,
vector<Solidification Node>& solidification result)
simulate solidification
with lever rule or Scheil
model