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_EQUATION_EQPARAM_PHYSICAL_H__ 00030 #define __CSFL_MATH_EQUATION_EQPARAM_PHYSICAL_H__ 00031 00032 00033 // Include 00034 #include <csfl/field/value/scalar.h> 00035 #include <csfl/geom/metric/metric.h> 00036 00037 00038 // Include 00039 #include <csfl/math/equation/eqparam/eqparam.h> 00040 00041 00042 // Namespace 00043 namespace csfl { 00044 00045 //============================================================================== 00046 // Class IParamPhysical 00047 // Description: Base class for Equation's Physical Parameters 00048 //============================================================================== 00049 class IParamPhysical : 00050 public IParameter 00051 00056 00057 { 00058 00059 public: 00065 IParamPhysical( 00066 IFieldScalar *_field = NULL, 00067 IMetric *_metric = NULL, 00068 TParameterType _pt = ptNULL ); 00069 IParamPhysical( IParamPhysical *_p ); 00070 ~IParamPhysical(); 00071 00076 IFieldScalar * Field() { return field; } 00077 00084 void SetField( IFieldScalar *_field ) { field = _field; } 00085 00091 IMetric * Metric() { return metric; } 00092 00104 double Value( const IPoint &, TDirection = diNULL ); 00105 double Value( int, int, TDirection = diNULL ); 00106 00114 void SetValue( const IPoint & = IPoint::zero, double = 0.0 ); 00115 00116 private: 00117 IFieldScalar *field; 00118 IMetric *metric; 00119 }; 00120 } // csfl namespace 00121 00122 #endif// __CSFL_MATH_EQUATION_EQPARAM_PHYSICAL_H__ 00123
CFD Project
|
Documents |
Downloads |
Contact us |
Use Terms |
|
|||
© SINMEC/EMC/UFSC,
2001. |
All rights
reserved. |
Last Update: Jan. 18, 2002 |
|