Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

energy.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2001 The AUTHORS 
00003  *   Romeu Andre' Pieritz, Ph.D.        - romeu_pieritz@hotmail.com
00004  *   Rafael Mendes, Eng.                – mendes_rafael@yahoo.com
00005  *   Rodrigo Ferraz de Andrade, Eng.    – rferraz@iname.com 
00006  * All rights reserved.
00007  *
00008  * Permission to use, copy and distribute this software and its
00009  * documentation for educational and personal use, without fee is hereby granted, 
00010  * provided that the above copyright notice and the following
00011  * two paragraphs appear in all copies of this software.
00012  *
00013  * IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR
00014  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
00015  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS
00016  * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00017  *
00018  * THE AUTHORS SPECIFICALLY DISCLAIMS ANY WARRANTIES,
00019  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
00020  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HERE UNDER IS
00021  * ON AN "AS IS" BASIS, AND THE AUTHORS HAVE NO OBLIGATION TO
00022  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
00023  *
00024  * SINMEC Lab. - CFD Sinflow Project - http://www.sinmec.ufsc.br/cfd
00025  */
00026 
00027 
00028 // File Define
00029 #ifndef __CSFL_NUM_SEQUENCER_SIMPLE_ENERGY_H__
00030 #define __CSFL_NUM_SEQUENCER_SIMPLE_ENERGY_H__
00031 
00032 // Include =====================================================================
00033 #include <csfl/num/sequencer/simple.h>
00034 #include <csfl/num/sequencer/energy.h>
00035 
00036 
00037 // Namespace
00038 namespace csfl {
00039 
00040 //==============================================================================
00041 //              Class ISequencerSimpleEnergy
00042 //              Description: Base Class for the SIMPLE Method With Energy Equation
00043 //==============================================================================
00044 
00045 
00051 
00052 class ISequencerSimpleEnergy : 
00053         public ISequencerSimple, 
00054         public ISequencerEnergy
00055 {
00056 
00057 public:
00058         
00066         ISequencerSimpleEnergy(
00067         const IString &_id ,
00068                 IContainerEquation *_contEquation,
00069                 ISolver *_solver,
00070                 double _starttime = 0.0, 
00071                 double _finaltime = 1.0, 
00072                 double _steptime = 0.5 );       
00073         
00074         ISequencerSimpleEnergy( ISequencerSimpleEnergy *_s );
00075         
00076         ~ISequencerSimpleEnergy();
00077 
00078         
00079 public:                 
00080 
00081 
00083         int IteratorT() { return itT; }
00084         
00089         void SetMaximumIteratorT( int _v ) { itTMax = _v; }
00090         
00092         virtual void Write( ostream &_os );
00093         
00095         virtual void Read ( istream &_is );
00096 
00097 protected:
00098 
00099         int itT, itTMax;
00100         
00101         
00102         virtual void Begin();
00103     virtual void Solution( double );
00104         virtual void End();
00105         
00106         virtual bool IteractError();
00107         
00108         virtual bool SolutionError();
00109         virtual void ActualizeVariables();
00110         
00111         virtual void Find(); 
00112         virtual void InitVariables();
00113 
00114 };
00115 } // csfl namespace
00116 
00117 #endif // __CSFL_NUM_SEQUENCER_SIMPLE_ENERGY_H__

 

CFD Project | Documents | Downloads | Contact us | Use Terms

 

© SINMEC/EMC/UFSC, 2001.

All rights reserved.

Last Update: Jan. 18, 2002

 Webmaster