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

inlet.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_MATH_BCOND_TYPE_INLET_H__
00030 #define __CSFL_MATH_BCOND_TYPE_INLET_H__
00031 
00032 
00033 // Include
00034 #include <csfl/math/bcond/bctype.h>
00035 
00036 
00037 // Namespace
00038 namespace csfl {
00039 
00040 //==============================================================================
00041 //              Class IBCTInlet
00042 //              Description: Class for Inlet Flux in the Boundary
00043 //==============================================================================
00044 class IBCTInlet : 
00045         public IBCType
00046 
00052         
00053 {
00054         
00055 public:
00061         IBCTInlet( 
00062                 const IString &_name = IString( "Inlet Condition" ),
00063         IFunction *_fu = NULL, 
00064                 IFunction *_fv = NULL,
00065                 IFunction *_T = NULL, 
00066                 TBCType _id = bctInlet );
00067     
00069         IBCTInlet( IBCTInlet *_b );
00070 
00071    ~IBCTInlet();
00072 
00081         double EvalT( const double & _pos )
00082                 { return function->Eval( _pos ); }
00083 
00092         double EvalU( const double & _pos )
00093                 { return fu->Eval( _pos ); }
00094 
00103         double EvalV( const double & _pos )
00104                 { return fv->Eval( _pos ); }
00105 
00107         IFunction * FunctionVelocityU() { return fu; }
00109         IFunction * FunctionVelocityV() { return fv; }
00110 
00112         void SetFunctionVelocityU( IFunction *_fu );
00114         void SetFunctionVelocityV( IFunction *_fv );
00115         
00116 protected:
00117         IFunction *fu;
00118         IFunction *fv;
00119 };
00120 } // csfl namespace
00121 
00122 #endif// __CSFL_MATH_BCOND_TYPE_INLET_H__
00123 

 

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

 

© SINMEC/EMC/UFSC, 2001.

All rights reserved.

Last Update: Jan. 18, 2002

 Webmaster