#include <moistheat.h>
Public Member Functions | |
void | aux_values (long ipp, double *inv, double *inp, double *ine, double *out) |
double | chm (long ipp) |
double | cht (long ipp) |
double | cmm (long ipp) |
double | cmt (long ipp) |
double | derivative_of_saturated_water_vapor_pressure (double tk) |
double | derivative_of_the_enthalpy_density (long ipp) |
double | get_othervalue (long compother, double rh, double t, long ipp) |
double | get_transmission_flux_hh (double bv, double rh, double t, long bc) |
double | get_transmission_flux_tt (double bv, double t, long bc) |
double | get_transmission_nodval_hh (double bv, double rh, double t, long bc) |
double | get_transmission_nodval_th (double bv, long bc) |
double | get_transmission_nodval_tt (double bv, long bc) |
double | get_transmission_transcoeff_hh (double t, long bc) |
double | get_transmission_transcoeff_th (double t, long bc) |
double | get_transmission_transcoeff_tt (double trcp, long bc) |
void | give_dof_names (namevart *dofname, long ntm) |
returns ordered dof names | |
double | give_inittemperature (long ipp) |
function returns initial temperature in integration point | |
double | give_press_water_vapor (long ipp) |
function returns partial pressure of water vapour in integration point | |
double | give_rel_hum (long ipp) |
function returns relative humidity in integration point | |
void | give_reqntq (long *antq) |
function returns required non-transport quantities | |
double | give_temperature (long ipp) |
function returns temperature in integration point | |
void | give_values (long ipp, double *av, double *pv, double *eq) |
double | give_vol_moist (long ipp) |
function returns volumetric moisture content | |
void | initvalues (long ipp, long ido) |
double | khm (long ipp) |
double | kht (long ipp) |
double | kmm (long ipp) |
double | kmt (long ipp) |
double | latent_heat_of_evaporation_of_water (double tk) |
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) |
moistheatmat () | |
void | print (FILE *out) |
void | print_othervalue_name (FILE *out, long compother) |
void | read (XFILE *in) |
double | saturated_water_vapor_pressure (double tk) |
void | save_values (long ipp, double *out) |
double | transmission_flux (double nodval, long ri, long ci, long nid, long bc) |
double | transmission_nodval (double nodval, long ri, long ci, long nid, long bc) |
double | transmission_transcoeff (double trc, long ri, long ci, long nid, long bc) |
void | values_correction (vector &nv) |
double | water_vapour_permeability (double tk, long ipp) |
~moistheatmat () | |
Public Attributes | |
double | a1 |
double | a2 |
double | a3 |
gfunct | c |
specific heat capacity | |
flagsw | daminfl |
flag for influence of damage on permeability | |
gfunct * | data [20] |
double | dmoistdrh |
gfunct | dpp |
permeabilita vodni pary | |
isotherm | isoth |
sorption isotherm | |
long | kd |
gfunct | lambda |
thermal conductivity | |
double | M |
double | moist |
double | R |
gfunct | rho |
density | |
double | rho_m |
double | rho_w |
gfunct | sm |
saturated volumetric moisture content | |
isotherm | sorpiso |
sorption isotherm | |
gfunct | teptr |
temperature of transport parametr | |
gfunct | transpar |
transportni clen | |
Static Public Attributes | |
static dampermeability | damper |
influence of damage on permeability |
class contains Kunzel material model for coupled heat and moisture transfer
ip[ipp].av[0] - actual relative humidity ip[ipp].av[1] - actual temperature
ip[ipp].pv[0] - the relative humidity from the previous time step ip[ipp].pv[1] - the temperature from the previous time step
values stored in eqother array Tm->ip[ipp].eqother[0] - volumetric moisture content Tm->ip[ipp].eqother[1] - derivative of the sorption isotherm Tm->ip[ipp].eqother[2] - saturated volumetric moisture content Tm->ip[ipp].eqother[3] - moisture diffusivity Tm->ip[ipp].eqother[4] - type of Kunzel model
JM, revised by JK 10. 10. 2013
Definition at line 27 of file moistheat.h.
moistheatmat | ( | ) |
~moistheatmat | ( | ) |
Definition at line 38 of file moistheat.cpp.
void aux_values | ( | long | ipp, | |
double * | inv, | |||
double * | inp, | |||
double * | ine, | |||
double * | out | |||
) |
function computes auxilary values all input values have to be imported as parameters of the function because it is used in connection with integration points and nodes therefore, the input values cannot be read in this function
ipp | - integration point id |
JM, 12.10.2011
Definition at line 1099 of file moistheat.cpp.
References isotherm::derivative_isotherm_value(), gfunct::getval(), isotherm::isotherm_value(), sm, sorpiso, and teptr.
Referenced by transmat::aux_values().
double chm | ( | long | ipp | ) |
capacity coefficient between moisture gradient and heat flux
ipp | - id of integration point |
JM, 12.10.2011
Definition at line 464 of file moistheat.cpp.
Referenced by matcap().
double cht | ( | long | ipp | ) |
capacity coefficient between temperature gradient and heat flux
ipp | - id of integration point |
JM, 12.10.2011
Definition at line 482 of file moistheat.cpp.
References derivative_of_the_enthalpy_density().
Referenced by matcap().
double cmm | ( | long | ipp | ) |
capacity coefficient between moisture gradient and moisture flux
ipp | - id of integration point |
JM, 12.10.2011
Definition at line 414 of file moistheat.cpp.
References intpointst::av, intpointst::eqother, transmat::ip, rho_w, and Tm.
Referenced by matcap().
double cmt | ( | long | ipp | ) |
capacity coefficient between temperature gradient and moisture flux
ipp | - id of integration point |
JM, 12.10.2011
Definition at line 447 of file moistheat.cpp.
Referenced by matcap().
double derivative_of_saturated_water_vapor_pressure | ( | double | tk | ) |
double derivative_of_the_enthalpy_density | ( | long | ipp | ) |
Function calculates derivative of the enthalpy density
tk | - temperature [K] | |
ipp | - id of integration point |
JM, 12.10.2011
Definition at line 529 of file moistheat.cpp.
References c, intpointst::eqother, gfunct::getval(), transmat::ip, moist, rho, rho_m, and Tm.
Referenced by cht().
double get_othervalue | ( | long | compother, | |
double | rh, | |||
double | t, | |||
long | ipp | |||
) |
function computes all variables in nodes
compother | - number of other components | |
ipp | - rhrst integration point on element | |
pc | - capillary pressure on actual node | |
pg | - gas pressure on actual node | |
t | - temperature on actual node |
Definition at line 987 of file moistheat.cpp.
References gfunct::getval(), isotherm::isotherm_value(), M, other, print_err(), R, rho, rho_m, rho_w, saturated_water_vapor_pressure(), sorpiso, and teptr.
Referenced by med2::compute_othervalues().
double get_transmission_flux_hh | ( | double | bv, | |
double | pv, | |||
double | t, | |||
long | bc | |||
) |
function creates flux on the boundary (convective mass transfer)
bv | - prescribed value near the boundary | |
pv | - relative humidity in domain solved | |
t | - temperature in domain solved | |
bc | - type of boundary condition |
Definition at line 892 of file moistheat.cpp.
Referenced by transmission_flux().
double get_transmission_flux_tt | ( | double | bv, | |
double | t, | |||
long | bc | |||
) |
function creates heat flux on the boundary
bv | - prescribed value near the boundary | |
t | - actual temperature on the boundary | |
bc | - type of boundary condition |
Definition at line 959 of file moistheat.cpp.
References flux, and print_err().
Referenced by transmission_flux().
double get_transmission_nodval_hh | ( | double | bv, | |
double | rh, | |||
double | t, | |||
long | bc | |||
) |
function computes the right prescribed value on the boundary for prescribed condition (partial pressure of water vapor)
bv | - prescribed value near the boundary | |
rh | - relative humidity in domain solved | |
t | - temperature in domain solved | |
bc | - type of boundary condition |
Definition at line 596 of file moistheat.cpp.
References gfunct::getval(), isotherm::inverse_isotherm_value(), moist, nodval(), print_err(), rho, rho_m, rho_w, saturated_water_vapor_pressure(), and sorpiso.
Referenced by transmission_nodval().
double get_transmission_nodval_th | ( | double | bv, | |
long | bc | |||
) |
function computes the right prescribed value on the boundary for prescribed condition (relative humidity)
bv | - prescribed value near the boundary | |
rh | - relative humidity in domain solved | |
t | - temperature in domain solved | |
bc | - type of boundary condition |
Definition at line 658 of file moistheat.cpp.
References moist, nodval(), and print_err().
Referenced by transmission_nodval().
double get_transmission_nodval_tt | ( | double | bv, | |
long | bc | |||
) |
function returns prescribed temperature of external environment for the transmisson boundary condition
bv | - prescribed external temperature | |
bc | - type of boundary condition |
TKr, modified by JK
Definition at line 683 of file moistheat.cpp.
References nodval(), and print_err().
Referenced by transmission_nodval().
double get_transmission_transcoeff_hh | ( | double | t, | |
long | bc | |||
) |
function creates transfer coefrhcient on the boundary for prescribed condition (relative humidity)
t | - temperature | |
bc | - type of boundary condition |
Definition at line 749 of file moistheat.cpp.
References print_err(), and saturated_water_vapor_pressure().
Referenced by transmission_transcoeff().
double get_transmission_transcoeff_th | ( | double | t, | |
long | bc | |||
) |
function creates transfer coefficient on the boundary for prescribed condition (relative humidity)
t | - temperature | |
bc | - type of boundary condition |
Definition at line 798 of file moistheat.cpp.
References print_err().
Referenced by transmission_transcoeff().
double get_transmission_transcoeff_tt | ( | double | trcp, | |
long | bc | |||
) |
function creates transfer coefrhcient on the boundary for prescribed condition (temperature)
trc | - prescribed transmission coefficent | |
bc | - type of boundary condition |
Definition at line 823 of file moistheat.cpp.
References print_err().
Referenced by transmission_transcoeff().
void give_dof_names | ( | namevart * | dofname, | |
long | ntm | |||
) |
returns ordered dof names
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 |
pv - partial pressure of water vapor Created by Tomas Koudelka, 4.2.2014
Definition at line 1196 of file moistheat.cpp.
References print_err(), trf_press_water_vapor, and trf_temperature.
Referenced by transmat::give_dof_names().
double give_inittemperature | ( | long | ipp | ) |
function returns initial temperature in integration point
Function returns initial temperature in the given integration point.
ipp | - integration point id |
Created by TKo, 21.11.2013
Definition at line 1235 of file moistheat.cpp.
References print_err().
double give_press_water_vapor | ( | long | ipp | ) |
function returns partial pressure of water vapour in integration point
Function returns partial pressure of water vapor in the given integration point.
ipp | - integration point id |
Created by TKo, 21.11.2013
Definition at line 1272 of file moistheat.cpp.
References intpointst::av, transmat::ip, and Tm.
double give_rel_hum | ( | long | ipp | ) |
function returns relative humidity in integration point
Function returns relative humidity in the given integration point.
ipp | - integration point id |
Created by TKo, 21.11.2013
Definition at line 1252 of file moistheat.cpp.
References intpointst::av, gfunct::getval(), transmat::ip, saturated_water_vapor_pressure(), teptr, and Tm.
void give_reqntq | ( | long * | antq | ) |
function returns required non-transport quantities
The funtion marks required non-transport quantities in the array antq.
antq | - array with flags for used material types antq[i] = 1 => quantity type nontransquant(i+1) is required antq[i] = 0 => quantity type nontransquant(i+1) is not required |
23. 4. 2014, by TKo
Definition at line 1306 of file moistheat.cpp.
References crack_width, daminfl, on, proc_zone_length, and scal_iso_damage.
Referenced by transmat::give_reqntq().
double give_temperature | ( | long | ipp | ) |
function returns temperature in integration point
Function returns temperature in the given integration point.
ipp | - integration point id |
24. 10. 2013, JK
Definition at line 1219 of file moistheat.cpp.
References intpointst::av, transmat::ip, and Tm.
void give_values | ( | long | ipp, | |
double * | av, | |||
double * | pv, | |||
double * | eq | |||
) |
function reads values from arrays in integration points
ipp | - integration point id | |
av | - actual values | |
eq | - array with values |
7.10.2011
Definition at line 1161 of file moistheat.cpp.
References intpointst::av, intpointst::eqother, transmat::ip, intpointst::pv, and Tm.
Referenced by transmat::aux_values().
double give_vol_moist | ( | long | ipp | ) |
function returns volumetric moisture content
Function returns volumetric moisture content in the given integration point.
ipp | - integration point id |
Created by TKo, 25.11.2013
Definition at line 1288 of file moistheat.cpp.
References intpointst::eqother, transmat::ip, and Tm.
Referenced by transmat::give_vol_moist_cont().
void initvalues | ( | long | ipp, | |
long | ido | |||
) |
Definition at line 1182 of file moistheat.cpp.
Referenced by transmat::initvalues().
double khm | ( | long | ipp | ) |
conductivity coefficient between moisture gradient and heat flux
ipp | - id of integration point |
JM, 12.10.2011
Definition at line 384 of file moistheat.cpp.
References intpointst::av, dpp, gfunct::getval(), transmat::ip, latent_heat_of_evaporation_of_water(), and Tm.
Referenced by matcond1d(), matcond2d(), and matcond3d().
double kht | ( | long | ipp | ) |
conductivity coefficient between temperature gradient and heat flux
ipp | - id of integration point |
JM, 12.10.2011
Definition at line 361 of file moistheat.cpp.
References intpointst::eqother, gfunct::getval(), transmat::ip, lambda, moist, and Tm.
Referenced by matcond1d(), matcond2d(), and matcond3d().
double kmm | ( | long | ipp | ) |
conductivity coefficient between moisture gradient and moisture flux
ipp | - id of integration point |
JM, 12.10.2011
Definition at line 320 of file moistheat.cpp.
References intpointst::av, gfunct::getval(), transmat::ip, Tm, and transpar.
Referenced by matcond1d(), matcond2d(), and matcond3d().
double kmt | ( | long | ipp | ) |
conductivity coefficient between temperature gradient and moisture flux
ipp | - id of integration point |
JM, 12.10.2011
Definition at line 344 of file moistheat.cpp.
Referenced by matcond1d(), matcond2d(), and matcond3d().
double latent_heat_of_evaporation_of_water | ( | double | tk | ) |
Definition at line 497 of file moistheat.cpp.
Referenced by khm().
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 JM, 12.10.2011 |
Definition at line 269 of file moistheat.cpp.
References chm(), cht(), cmm(), and cmt().
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 |
Definition at line 125 of file moistheat.cpp.
References daminfl, damper, intpointst::eqother, transmat::ip, dampermeability::matcond(), matcond1d(), matcond2d(), matcond3d(), matrix::n, on, print_err(), and Tm.
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 |
JM, 12.10.2011
Definition at line 174 of file moistheat.cpp.
References khm(), kht(), kmm(), and kmt().
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 |
JM, 12.10.2011
Definition at line 201 of file moistheat.cpp.
References fillm(), khm(), kht(), kmm(), and kmt().
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 |
JM, 12.10.2011
Definition at line 236 of file moistheat.cpp.
References fillm(), khm(), kht(), kmm(), and kmt().
Referenced by matcond().
void print | ( | FILE * | out | ) |
function prints material characteristics
out | - output file |
JM, 12.10.2011
Definition at line 86 of file moistheat.cpp.
References c, daminfl, dpp, lambda, isotherm::print(), gfunct::print(), rho, sm, sorpiso, teptr, and transpar.
Referenced by transmat::printmatchar().
void print_othervalue_name | ( | FILE * | out, | |
long | compother | |||
) |
function prints names of all variables in nodes
out | - output rhle | |
compother | - number of other components |
Definition at line 1054 of file moistheat.cpp.
References print_err().
Referenced by med2::print_othervaluesnames().
void read | ( | XFILE * | in | ) |
function reads material characteristics
in | - input file |
JM, 12.10.2011
Definition at line 49 of file moistheat.cpp.
References answertype_kwdset(), c, daminfl, dpp, lambda, isotherm::read(), gfunct::read(), rho, sm, sorpiso, teptr, transpar, and xfscanf().
Referenced by transmat::readmattype().
double saturated_water_vapor_pressure | ( | double | tk | ) |
Function calculates saturation water vapor pressure saturation water vapor pressure by xxxx tk ... temperature [K]
tk | - temperature [K] |
Definition at line 514 of file moistheat.cpp.
Referenced by get_othervalue(), get_transmission_nodval_hh(), get_transmission_transcoeff_hh(), and give_rel_hum().
void save_values | ( | long | ipp, | |
double * | out | |||
) |
function stores values to eqother arrays in integration points
ipp | - integration point id | |
out | - array with values |
7.10.2011
Definition at line 1144 of file moistheat.cpp.
References intpointst::eqother, transmat::ip, and Tm.
Referenced by transmat::aux_values().
double transmission_flux | ( | double | nodval, | |
long | ri, | |||
long | ci, | |||
long | nid, | |||
long | bc | |||
) |
function computes flux (for transmission_vector) for boundary condition (third kind of boundary condition)
nodval | - prescribed nodal value | |
ri | - row index | |
ci | - column index | |
nid | - node id | |
bc | - type of boundary condition |
Definition at line 858 of file moistheat.cpp.
References flux, get_transmission_flux_hh(), get_transmission_flux_tt(), and nodalval().
double transmission_nodval | ( | double | nodval, | |
long | ri, | |||
long | ci, | |||
long | nid, | |||
long | bc | |||
) |
function computes new nodal value (for transmission_vector) for boundary condition (third kind of boundary condition)
nodval | - prescribed nodal value | |
ri | - row index | |
ci | - column index | |
nid | - node id | |
bc | - type of the boundary condition |
Definition at line 562 of file moistheat.cpp.
References get_transmission_nodval_hh(), get_transmission_nodval_th(), get_transmission_nodval_tt(), h(), and nodalval().
Referenced by med2::transmission_nodval().
double transmission_transcoeff | ( | double | trc, | |
long | ri, | |||
long | ci, | |||
long | nid, | |||
long | bc | |||
) |
function computes new transmission coefficient
trc | - prescribed transmission coefrhcient on the boundary | |
ri | - row index | |
ci | - column index | |
nid | - number of node | |
bc | - type of boundary condition |
Definition at line 717 of file moistheat.cpp.
References get_transmission_transcoeff_hh(), get_transmission_transcoeff_th(), and get_transmission_transcoeff_tt().
Referenced by med2::transmission_transcoeff().
void values_correction | ( | vector & | nv | ) |
function checks values of relative humidity and temperature if the values are out of range, the limit values are assigned
nv | - array with relative humidity and temperature |
JK, 7.10.2011
Definition at line 292 of file moistheat.cpp.
Referenced by transmat::values_correction().
double water_vapour_permeability | ( | double | tk, | |
long | ipp | |||
) |
double a1 |
Definition at line 106 of file moistheat.h.
double a2 |
Definition at line 106 of file moistheat.h.
double a3 |
Definition at line 106 of file moistheat.h.
specific heat capacity
Definition at line 128 of file moistheat.h.
Referenced by derivative_of_the_enthalpy_density(), print(), and read().
flag for influence of damage on permeability
Definition at line 144 of file moistheat.h.
Referenced by give_reqntq(), matcond(), moistheatmat(), print(), and read().
dampermeability damper [static] |
influence of damage on permeability
Definition at line 142 of file moistheat.h.
Referenced by matcond().
Definition at line 111 of file moistheat.h.
double dmoistdrh |
Definition at line 114 of file moistheat.h.
permeabilita vodni pary
Definition at line 133 of file moistheat.h.
sorption isotherm
Definition at line 119 of file moistheat.h.
long kd |
Definition at line 105 of file moistheat.h.
thermal conductivity
Definition at line 130 of file moistheat.h.
double M |
Definition at line 115 of file moistheat.h.
Referenced by get_othervalue(), and moistheatmat().
double moist |
Definition at line 114 of file moistheat.h.
Referenced by derivative_of_the_enthalpy_density(), get_transmission_nodval_hh(), get_transmission_nodval_th(), and kht().
double R |
Definition at line 115 of file moistheat.h.
Referenced by get_othervalue(), and moistheatmat().
density
Definition at line 122 of file moistheat.h.
Referenced by derivative_of_the_enthalpy_density(), get_othervalue(), get_transmission_nodval_hh(), print(), and read().
double rho_m |
Definition at line 114 of file moistheat.h.
Referenced by derivative_of_the_enthalpy_density(), get_othervalue(), get_transmission_nodval_hh(), and moistheatmat().
double rho_w |
Definition at line 114 of file moistheat.h.
Referenced by cmm(), get_othervalue(), get_transmission_nodval_hh(), and moistheatmat().
saturated volumetric moisture content
Definition at line 126 of file moistheat.h.
Referenced by aux_values(), print(), and read().
sorption isotherm
Definition at line 124 of file moistheat.h.
Referenced by aux_values(), get_othervalue(), get_transmission_nodval_hh(), print(), and read().
temperature of transport parametr
Definition at line 139 of file moistheat.h.
Referenced by aux_values(), get_othervalue(), give_rel_hum(), print(), and read().
transportni clen
Definition at line 136 of file moistheat.h.