#include <homogmat.h>
Public Member Functions | |
void | assemble_matrices (double *d, long ntm, long dim) |
double | get_othervalue (long compother, double rh, double t, long ipp) |
double | get_transmission_flux_tt (double bv, double w, double t, long bc, long ipp) |
double | get_transmission_flux_ww (double bv, double w, double t, long bc, long ipp) |
double | get_transmission_nodval_tt (double bv, double w, double t, long bc, long ipp) |
double | get_transmission_nodval_ww (double bv, double w, double t, long bc, long ipp) |
double | get_transmission_transcoeff_tt (double w, double t, long bc, long ipp) |
double | get_transmission_transcoeff_ww (double w, double t, long bc, long ipp) |
void | give_dof_names (namevart *dofname, long ntm) |
homogmat (void) | |
void | matcap (double &c, long ri, long ci, long ipp) |
void | matcond (matrix &d, long ri, long ci, long ipp) |
void | matcond1d (matrix &d, long ri, long ci, long ipp) |
void | matcond2d (matrix &d, long ri, long ci, long ipp) |
void | matcond3d (matrix &d, long ri, long ci, long ipp) |
void | print_othervalue_name (FILE *out, long compother) |
double | transmission_flux (double nodval, double trc2, long ri, long ci, long nn, long bc, long ipp) |
double | transmission_nodval (double nodval, double trc2, long ri, long ci, long nn, long bc, long ipp) |
double | transmission_transcoeff (double trc, long ri, long ci, long nn, long bc, long ipp) |
~homogmat (void) | |
Public Attributes | |
matrix | cc |
matrix | dd |
Definition at line 9 of file homogmat.h.
void assemble_matrices | ( | double * | d, | |
long | ntm, | |||
long | dim | |||
) |
function assembles the conductivity matrix after homogenization
d | - array of matrix entries |
JK, 23.9.2010
Definition at line 132 of file homogmat.cpp.
double get_othervalue | ( | long | compother, | |
double | rh, | |||
double | t, | |||
long | ipp | |||
) |
function computes all variables in nodes
compother | - number of other components | |
ipp | - first integration point on element | |
pc | - capillary pressure on actual node | |
pg | - gas pressure on actual node | |
t | - temperature on actual node |
Definition at line 485 of file homogmat.cpp.
References other, and print_err().
Referenced by med2::compute_othervalues().
double get_transmission_flux_tt | ( | double | bv, | |
double | w, | |||
double | t, | |||
long | bc, | |||
long | ipp | |||
) |
function creates heat flux on the boundary
bv | - prescribed value near the boundary | |
w | - water content | |
t | - actual temperature on the boundary | |
bc | - type of boundary condition |
TKr, 26/09/2011
Definition at line 454 of file homogmat.cpp.
References flux, and print_err().
Referenced by transmission_flux().
double get_transmission_flux_ww | ( | double | bv, | |
double | w, | |||
double | t, | |||
long | bc, | |||
long | ipp | |||
) |
function creates flux on the boundary (convective mass transfer)
bv | - prescribed value near the boundary | |
w | - water content | |
t | - actual temperature on the boundary | |
bc | - type of boundary condition |
TKr, 26/09/2011
Definition at line 363 of file homogmat.cpp.
References flux, and print_err().
Referenced by transmission_flux().
double get_transmission_nodval_tt | ( | double | bv, | |
double | w, | |||
double | t, | |||
long | bc, | |||
long | ipp | |||
) |
function computes the right prescribed value on the boundary for prescribed condition (temperature)
bv | - prescribed value near the boundary | |
w | - actual water conctent on the boundary | |
t | - actual temperature on the boundary | |
bc | - type of boundary condition |
TKr, 26/09/2011
Definition at line 422 of file homogmat.cpp.
References nodval(), and print_err().
Referenced by transmission_nodval().
double get_transmission_nodval_ww | ( | double | bv, | |
double | w, | |||
double | t, | |||
long | bc, | |||
long | ipp | |||
) |
function computes the right prescribed value on the boundary for prescribed condition (water vapour pressure)
bv | - prescribed value near the boundary | |
w | - actual water conctent on the boundary | |
t | - actual temperature on the boundary | |
bc | - type of boundary condition |
TKr, 26/09/2011
Definition at line 335 of file homogmat.cpp.
References nodval(), and print_err().
Referenced by transmission_nodval().
double get_transmission_transcoeff_tt | ( | double | w, | |
double | t, | |||
long | bc, | |||
long | ipp | |||
) |
function creates transfer coefficient on the boundary for prescribed condition (temperature)
w | - water content | |
t | - temperature | |
bc | - type of boundary condition |
TKr, 26/09/2011
Definition at line 390 of file homogmat.cpp.
References print_err().
Referenced by transmission_transcoeff().
double get_transmission_transcoeff_ww | ( | double | w, | |
double | t, | |||
long | bc, | |||
long | ipp | |||
) |
function creates transfer coefficient on the boundary for prescribed condition (water vapour pressure)
w | - water content | |
t | - temperature | |
bc | - type of boundary condition |
TKr, 26/09/2011
Definition at line 307 of file homogmat.cpp.
References print_err().
Referenced by transmission_transcoeff().
void give_dof_names | ( | namevart * | dofname, | |
long | ntm | |||
) |
The function returns ordered dof names of primary unknowns required by the model.
dofname | - array of uknown name for particular nodal dofs (output) dofname[i] = name of i-th nodal unknown (for names see aliast.h - enum namevart) | |
ntm | - number of transported media = number of nodal dof = length of array dofname |
JK, 23. 4. 2014
Definition at line 539 of file homogmat.cpp.
References print_err(), trf_rel_humidity, and trf_temperature.
Referenced by transmat::give_dof_names().
void matcap | ( | double & | c, | |
long | ri, | |||
long | ci, | |||
long | ipp | |||
) |
function creates capacity matrix of the material
c | - capacity matrix of the material | |
ri | - row index | |
ci | - column index | |
ipp | - number of integration point |
JK, 23.9.2010
Definition at line 120 of file homogmat.cpp.
References cc.
Referenced by med2::matcap().
void matcond | ( | matrix & | d, | |
long | ri, | |||
long | ci, | |||
long | ipp | |||
) |
function computes conductivity matrix of the material in the required integration point
d | - conductivity matrix of material | |
ri | - row index | |
ci | - column index | |
ipp | - number of integration point |
JK, 23.9.2010
Definition at line 36 of file homogmat.cpp.
References matcond1d(), matcond2d(), matcond3d(), matrix::n, and print_err().
Referenced by med2::matcond().
void matcond1d | ( | matrix & | d, | |
long | ri, | |||
long | ci, | |||
long | ipp | |||
) |
function creates conductivity matrix of the material for 1D problems
d | - conductivity matrix of the material | |
ri | - row index | |
ci | - column index | |
ipp | - number of integration point |
JK, 23.9.2010
Definition at line 71 of file homogmat.cpp.
References dd.
Referenced by matcond().
void matcond2d | ( | matrix & | d, | |
long | ri, | |||
long | ci, | |||
long | ipp | |||
) |
function creates conductivity matrix of the material for 2D problems
d | - conductivity matrix of the material | |
ri | - row index | |
ci | - column index | |
ipp | - number of integration point |
JK, 23.9.2010
Definition at line 86 of file homogmat.cpp.
References dd.
Referenced by matcond().
void matcond3d | ( | matrix & | d, | |
long | ri, | |||
long | ci, | |||
long | ipp | |||
) |
function creates conductivity matrix of the material for 3D problems
d | - conductivity matrix of the material | |
ri | - row index | |
ci | - column index | |
ipp | - number of integration point |
JK, 23.9.2010
Definition at line 102 of file homogmat.cpp.
References dd.
Referenced by matcond().
void print_othervalue_name | ( | FILE * | out, | |
long | compother | |||
) |
function prints names of all variables in nodes
out | - output file | |
compother | - number of other components |
TKr, 26/09/2011
Definition at line 512 of file homogmat.cpp.
References print_err().
Referenced by med2::print_othervaluesnames().
double transmission_flux | ( | double | nodval, | |
double | trc2, | |||
long | ri, | |||
long | ci, | |||
long | nn, | |||
long | bc, | |||
long | ipp | |||
) |
function computes flux (for transmission_vector) for boundary condition (third kind of boundary condition)
nodval | - prescribed nodal value | |
trc2 | - second prescribed transmission coefficient on the boundary, if is needed (for example heat radiation coef.) | |
ri | - row index | |
ci | - column index | |
nn | - number of node | |
bc | - type of boundary condition | |
ipp | - number of first integration point on element |
TKr, 26/09/2011
Definition at line 269 of file homogmat.cpp.
References flux, get_transmission_flux_tt(), get_transmission_flux_ww(), pvalt::getval(), gtopology::give_dof(), Gtt, transbclc::lc, lhsrhst::lhs, lhsrhst::lhsi, Lsrst, loadcaset::pv, and Tb.
Referenced by med2::transmission_flux().
double transmission_nodval | ( | double | nodval, | |
double | trc2, | |||
long | ri, | |||
long | ci, | |||
long | nn, | |||
long | bc, | |||
long | ipp | |||
) |
function computes new nodal value (for transmission_vector) for boundary condition (third kind of boundary condition)
nodval | - prescribed nodal value | |
trc2 | - second prescribed transmission coefficient on the boundary, if is needed (for example heat radiation coef.) | |
ri | - row index | |
ci | - column index | |
nn | - number of node | |
bc | - type of boundary condition | |
ipp | - number of first integration point on element |
TKr, 26/09/2011
Definition at line 225 of file homogmat.cpp.
References get_transmission_nodval_tt(), get_transmission_nodval_ww(), pvalt::getval(), gtopology::give_dof(), Gtt, transbclc::lc, lhsrhst::lhs, lhsrhst::lhsi, Lsrst, loadcaset::pv, and Tb.
Referenced by med2::transmission_nodval().
double transmission_transcoeff | ( | double | trc, | |
long | ri, | |||
long | ci, | |||
long | nn, | |||
long | bc, | |||
long | ipp | |||
) |
function computes new transmission coefficient (for transmission_vector) for boundary condition (third kind of boundary condition)
trc | - prescribed transmission coefficient on the boundary | |
ri | - row index | |
ci | - column index | |
nn | - number of node | |
bc | - type of boundary condition | |
ipp | - number of first integration point on element |
TKr, 26/09/2011
Definition at line 180 of file homogmat.cpp.
References get_transmission_transcoeff_tt(), get_transmission_transcoeff_ww(), pvalt::getval(), gtopology::give_dof(), Gtt, transbclc::lc, lhsrhst::lhs, lhsrhst::lhsi, Lsrst, loadcaset::pv, and Tb.
Referenced by med2::transmission_transcoeff().
Definition at line 41 of file homogmat.h.
Referenced by assemble_matrices(), homogmat(), matcap(), and ~homogmat().
Definition at line 40 of file homogmat.h.
Referenced by assemble_matrices(), homogmat(), matcond1d(), matcond2d(), matcond3d(), and ~homogmat().