00001 #ifndef BOCONT_H 00002 #define BOCONT_H 00003 00004 #include <stdio.h> 00005 #include "gfunct.h" 00006 #include "iotools.h" 00007 00008 /** 00009 The class is used for storage of boundary conditions in 00010 transport problems in the preprocessor. 00011 00012 Created by TKo, 09.2010 00013 */ 00014 class bocont 00015 { 00016 public: 00017 bocont(); 00018 ~bocont(); 00019 00020 /// reads data from the opened text file 00021 long read(XFILE *in, long ndof); 00022 00023 /// prints data to the opened text file in the TRFEL format 00024 long print(FILE *out); 00025 00026 /// compares boundary conditions of the instance with the one defined in object tbc 00027 long compare(bocont &tbc); 00028 00029 long lcid; ///< number of prescribed dofs 00030 double iv; ///< initial value 00031 double con; ///< prescribed value 00032 gfunct *cgf; ///< pointer to general function for BC in nonstationary problems 00033 }; 00034 00035 #endif