bocont Class Reference

#include <bocont.h>

List of all members.

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

gfunctcgf
 pointer to general function for BC in nonstationary problems
double con
 prescribed value
double iv
 initial value
long lcid
 number of prescribed dofs

Detailed Description

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.


Constructor & Destructor Documentation

bocont (  ) 

Constructor initializes data members Parameters : none Returns : nothing

Created by TKo, 09.2010

Definition at line 18 of file bocont.cpp.

References cgf, con, iv, and lcid.

~bocont (  ) 

Destructor releases allocated memory Parameters : none Returns : nothing

Created by TKo, 09.2010

Definition at line 37 of file bocont.cpp.

References cgf.


Member Function Documentation

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.

Parameters:
tbc - object of boundary condition which will be compared to
Return values:
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.

Parameters:
in - pointer to the opened text file, where the data will be read
ndofn - number of dofs in given node with prescribed condition
Return values:
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

Parameters:
in - pointer to the opened text file, where the data will be read
ndofn - number of dofs in given node with prescribed condition
Return values:
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().


Member Data Documentation

pointer to general function for BC in nonstationary problems

Definition at line 32 of file bocont.h.

Referenced by bocont(), compare(), print(), read(), and ~bocont().

double con

prescribed value

Definition at line 31 of file bocont.h.

Referenced by bocont(), compare(), print(), and read().

double iv

initial value

Definition at line 30 of file bocont.h.

Referenced by bocont(), compare(), print(), and read().

long lcid

number of prescribed dofs

Definition at line 29 of file bocont.h.

Referenced by bocont(), compare(), input_nod_bocont(), and read().


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2