#include <lincoupmat.h>
Public Member Functions | |
double | give_c (long bri, long bci, long ri, long ci) |
double | give_k (long bri, long bci, long ri, long ci) |
lincoupmat (void) | |
void | matcap (double &cc, 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 (FILE *out) |
void | read (XFILE *in) |
~lincoupmat (void) | |
Public Attributes | |
double * | c |
long | dim |
geometrical dimension of the problem | |
double * | k |
long | ntm |
number of transported matters |
class lincoupmat defines an linear material model for coupled transport processes
JK, 15.11.2008
Definition at line 15 of file lincoupmat.h.
lincoupmat | ( | void | ) |
~lincoupmat | ( | void | ) |
Definition at line 22 of file lincoupmat.cpp.
double give_c | ( | long | bri, | |
long | bci, | |||
long | ri, | |||
long | ci | |||
) |
function returns capacity coefficient
bri | - row index of the block | |
bci | - column index of the block | |
ri | - row index of coefficient in the required block | |
ci | - column index of coefficient in the required block |
JK, 16.11.2008
Definition at line 254 of file lincoupmat.cpp.
Referenced by matcap().
double give_k | ( | long | bri, | |
long | bci, | |||
long | ri, | |||
long | ci | |||
) |
function returns conductivity coefficient
bri | - row index of the block | |
bci | - column index of the block | |
ri | - row index of coefficient in the required block | |
ci | - column index of coefficient in the required block |
JK, 16.11.2008
Definition at line 239 of file lincoupmat.cpp.
Referenced by matcond1d(), matcond2d(), and matcond3d().
void matcap | ( | double & | cc, | |
long | ri, | |||
long | ci, | |||
long | ipp | |||
) |
function assembles capacity matrix of the material
c | - capacity matrix of the material | |
ri | - row index | |
ci | - column index | |
ipp | - number of integration point |
JK, 16.11.2008
Definition at line 221 of file lincoupmat.cpp.
References give_c().
Referenced by med2::matcap(), med3::matcap(), and med1::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, 15.11.2008
Definition at line 125 of file lincoupmat.cpp.
References matcond1d(), matcond2d(), matcond3d(), matrix::n, and print_err().
Referenced by med2::matcond(), med3::matcond(), and med1::matcond().
void matcond1d | ( | matrix & | d, | |
long | ri, | |||
long | ci, | |||
long | ipp | |||
) |
function assembles conductivity matrix of the material for 1D problems
d | - conductivity matrix of the material | |
ri | - row index of block | |
ci | - column index of block | |
ipp | - number of integration point |
JK, 16.11.2008
Definition at line 157 of file lincoupmat.cpp.
References give_k().
Referenced by matcond().
void matcond2d | ( | matrix & | d, | |
long | ri, | |||
long | ci, | |||
long | ipp | |||
) |
function assembles conductivity matrix of the material for 2D problems
d | - conductivity matrix of the material | |
ri | - row index of block | |
ci | - column index of block | |
ipp | - number of integration point |
JK, 16.11.2008
Definition at line 172 of file lincoupmat.cpp.
References fillm(), and give_k().
Referenced by matcond().
void matcond3d | ( | matrix & | d, | |
long | ri, | |||
long | ci, | |||
long | ipp | |||
) |
function assembles conductivity matrix of the material for 3D problems
d | - conductivity matrix of the material | |
ri | - row index of block | |
ci | - column index of block | |
ipp | - number of integration point |
JK, 16.11.2008
Definition at line 193 of file lincoupmat.cpp.
References fillm(), and give_k().
Referenced by matcond().
void print | ( | FILE * | out | ) |
function prints input and material parameters
out | - outut file |
JK, 16.11.2008
Definition at line 86 of file lincoupmat.cpp.
References c, dim, k, and ntm.
Referenced by transmat::printmatchar().
void read | ( | XFILE * | in | ) |
function reads input and material parameters
in | - input file |
JK, 15.11.2008
Definition at line 37 of file lincoupmat.cpp.
References c, dim, k, ntm, print_err(), and xfscanf().
Referenced by transmat::readmattype().
double* c |
array of capacity coefficients storage of coefficient is the same as for the conductivity coeffcients
Definition at line 53 of file lincoupmat.h.
Referenced by give_c(), lincoupmat(), print(), read(), and ~lincoupmat().
long dim |
geometrical dimension of the problem
Definition at line 39 of file lincoupmat.h.
Referenced by give_c(), give_k(), lincoupmat(), print(), and read().
double* k |
array of conductivity coefficients conductivity matrix has a block form, there are ntm rows of blocks and ntm columns of blocks, each block is a (dim x dim) matrix example in 2D and two matters k1 k2 k5 k6 k3 k4 k7 k8
k9 k10 k13 k14 k11 k12 k15 k16
Definition at line 50 of file lincoupmat.h.
Referenced by give_k(), lincoupmat(), print(), read(), and ~lincoupmat().
long ntm |
number of transported matters
Definition at line 37 of file lincoupmat.h.
Referenced by give_c(), give_k(), lincoupmat(), print(), and read().