#include <bocont.h>
Public Member Functions | |
bocont () | |
long | compare (bocont &tbc) |
compares boundary conditions of the instance with the one defined in object tbc | |
long | print (FILE *out) |
prints data to the opened text file in the TRFEL format | |
long | read (XFILE *in, long ndof) |
reads data from the opened text file | |
~bocont () | |
Public Attributes | |
gfunct * | cgf |
pointer to general function for BC in nonstationary problems | |
double | con |
prescribed value | |
double | iv |
initial value | |
long | lcid |
number of prescribed dofs |
The class is used for storage of boundary conditions in transport problems in the preprocessor.
Created by TKo, 09.2010
Definition at line 14 of file bocont.h.
bocont | ( | ) |
~bocont | ( | ) |
Destructor releases allocated memory Parameters : none Returns : nothing
Created by TKo, 09.2010
Definition at line 37 of file bocont.cpp.
References cgf.
long compare | ( | bocont & | tbc | ) |
compares boundary conditions of the instance with the one defined in object tbc
Method compares the actual object with the instance tbc.
tbc | - object of boundary condition which will be compared to |
0 | - in the case of identical boundary conditions | |
1 | - in the case of difference between objects |
Created by TKo, 09.2010
Definition at line 125 of file bocont.cpp.
References cgf, gfunct::compare(), con, iv, and lcid.
Referenced by input_nod_bocont().
long print | ( | FILE * | out | ) |
prints data to the opened text file in the TRFEL format
Method prints data to the text file specified by parameter out.
in | - pointer to the opened text file, where the data will be read | |
ndofn | - number of dofs in given node with prescribed condition |
0 | - on success |
Created by TKo, 09.2010
Definition at line 102 of file bocont.cpp.
References cgf, con, iv, and gfunct::print().
Referenced by wr_prescquant().
long read | ( | XFILE * | in, | |
long | ndofn | |||
) |
reads data from the opened text file
Method reads data from the text file specified by parameter in, data are in preprocessor format
in | - pointer to the opened text file, where the data will be read | |
ndofn | - number of dofs in given node with prescribed condition |
0 | - on success | |
1 | - load case id is not in range <1, ndofn> | |
2 | - parser error |
Created by TKo, 09.2010
Definition at line 58 of file bocont.cpp.
References cgf, con, discont_nonlin_nonstat_problem, discont_nonstat_problem, growing_np_problem, growing_np_problem_nonlin, iv, lcid, nonlinear_nonstationary_problem, nonlinear_stationary_problem, nonstationary_problem, print_err(), gfunct::read(), stationary_problem, Tp, probdesct::tprob, and xfscanf().
Referenced by input_nod_bocont().
double con |
double iv |
long lcid |