00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __GAS_SurfaceTension__
00020 #define __GAS_SurfaceTension__
00021
00022 #include "GAS_API.h"
00023
00024 #include "GAS_SubSolver.h"
00025 #include "GAS_Utils.h"
00026
00027 class SIM_VectorField;
00028 class SIM_ScalarField;
00029
00030 class GAS_API GAS_SurfaceTension : public GAS_SubSolver
00031 {
00032 public:
00033 GET_DATA_FUNC_S(GAS_NAME_VELOCITY, VelocityName);
00034 GET_DATA_FUNC_S(GAS_NAME_SURFACE, SurfaceName);
00035
00036 GETSET_DATA_FUNCS_F("surfacetension", SurfaceTension);
00037
00038 GET_DATA_FUNC_B(GAS_NAME_USETIMESTEP, UseTimeStep);
00039 GET_DATA_FUNC_F(GAS_NAME_TIMESCALE, TimeScale);
00040
00041 protected:
00042 explicit GAS_SurfaceTension(const SIM_DataFactory *factory);
00043 virtual ~GAS_SurfaceTension();
00044
00045
00046
00047 virtual bool solveGasSubclass(SIM_Engine &engine,
00048 SIM_Object *obj,
00049 SIM_Time time,
00050 SIM_Time timestep);
00051
00052 void addSurfaceTension(SIM_VectorField *velocity,
00053 SIM_ScalarField *surface,
00054 fpreal timestep);
00055
00056 private:
00057 static const SIM_DopDescription *getDopDescription();
00058
00059 DECLARE_STANDARD_GETCASTTOTYPE();
00060 DECLARE_DATAFACTORY(GAS_SurfaceTension,
00061 GAS_SubSolver,
00062 "Gas Surface Tension",
00063 getDopDescription());
00064 };
00065
00066 #endif
00067