30typedef Cabinet<Transport> TransportCabinet;
31template<> TransportCabinet* TransportCabinet::s_storage = 0;
41 string out = TransportCabinet::at(handle)->transportModel();
43 return int(out.size()) + 1;
53 return TransportCabinet::at(handle)->viscosity();
63 return TransportCabinet::at(handle)->thermalConductivity();
73 return TransportCabinet::at(handle)->electricalConductivity();
83 auto& obj = TransportCabinet::at(handle);
85 obj->getThermalDiffCoeffs(dt);
96 auto& obj = TransportCabinet::at(handle);
98 obj->getMixDiffCoeffs(d);
109 TransportCabinet::at(handle)->getBinaryDiffCoeffs(ld, d);
120 TransportCabinet::at(handle)->getMultiDiffCoeffs(ld, d);
127 int32_t
trans_getMolarFluxes(int32_t handle, int32_t state1Len,
const double* state1, int32_t state2Len,
const double* state2,
const double delta, int32_t cfluxesLen,
double* cfluxes)
131 TransportCabinet::at(handle)->getMolarFluxes(state1, state2, delta, cfluxes);
138 int32_t
trans_getMassFluxes(int32_t handle, int32_t state1Len,
const double* state1, int32_t state2Len,
const double* state2,
double delta, int32_t mfluxesLen,
double* mfluxes)
142 TransportCabinet::at(handle)->getMassFluxes(state1, state2, delta, mfluxes);
160 return TransportCabinet::size();
172 return TransportCabinet::parent(handle);
Header file defining class TransportFactory (see TransportFactory)
CTTRANS - Generated CLib Cantera interface library.
int32_t trans_getMultiDiffCoeffs(int32_t handle, const int32_t ld, int32_t dLen, double *d)
Return the multicomponent diffusion coefficients [m²/s].
double trans_viscosity(int32_t handle)
Get the dynamic viscosity [Pa·s].
double trans_electricalConductivity(int32_t handle)
Get the electrical conductivity [siemens/m].
int32_t trans_transportModel(int32_t handle, int32_t bufLen, char *buf)
Identifies the model represented by this Transport object.
int32_t trans_getBinaryDiffCoeffs(int32_t handle, const int32_t ld, int32_t dLen, double *d)
Returns the matrix of binary diffusion coefficients [m²/s].
int32_t trans_getThermalDiffCoeffs(int32_t handle, int32_t dtLen, double *dt)
Return a vector of thermal diffusion coefficients [kg/m/s].
int32_t trans_getMassFluxes(int32_t handle, int32_t state1Len, const double *state1, int32_t state2Len, const double *state2, double delta, int32_t mfluxesLen, double *mfluxes)
Get the mass fluxes [kg/m²/s], given the thermodynamic state at two nearby points.
int32_t trans_getMixDiffCoeffs(int32_t handle, int32_t dLen, double *d)
Return a vector of mixture averaged diffusion coefficients [m²/s].
int32_t trans_del(int32_t handle)
Destructor; required by some APIs although object is managed by Solution.
int32_t trans_parentHandle(int32_t handle)
Return handle to parent of Transport object.
int32_t trans_getMolarFluxes(int32_t handle, int32_t state1Len, const double *state1, int32_t state2Len, const double *state2, const double delta, int32_t cfluxesLen, double *cfluxes)
Get the molar fluxes [kmol/m²/s], given the thermodynamic state at two nearby points.
double trans_thermalConductivity(int32_t handle)
Get the mixture thermal conductivity [W/m/K].
int32_t trans_cabinetSize()
Return size of Transport storage.
size_t copyString(const string &source, char *dest, size_t length)
Copy the contents of a string into a char array of a given length.
Namespace for the Cantera kernel.
T handleAllExceptions(T ctErrorCode, T otherErrorCode)
Exception handler used at language interface boundaries.
Contains declarations for string manipulation functions within Cantera.