00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __GAS_ProjectNonDivergent__
00020 #define __GAS_ProjectNonDivergent__
00021
00022 #include "GAS_API.h"
00023
00024 #include <UT/UT_ThreadedAlgorithm.h>
00025 #include <GU/GU_Detail.h>
00026
00027 #include "GAS_SubSolver.h"
00028 #include "GAS_Utils.h"
00029
00030 class GU_Detail;
00031 class SIM_VectorField;
00032
00033 class GAS_API GAS_ProjectNonDivergent : public GAS_SubSolver
00034 {
00035 public:
00036 GET_DATA_FUNC_S(GAS_NAME_FIELD, FieldName);
00037 GET_DATA_FUNC_S(GAS_NAME_GEOMETRY, GeometryName);
00038 GET_DATA_FUNC_S(GAS_NAME_COLLISION, CollisionName);
00039 GET_DATA_FUNC_S(GAS_NAME_VELOCITY, VelocityName);
00040 GET_DATA_FUNC_S(GAS_NAME_PRESSURE, PressureName);
00041 GET_DATA_FUNC_S(GAS_NAME_DIVERGENCE, DivergenceName);
00042 GET_DATA_FUNC_S("component", ComponentName);
00043 GET_DATA_FUNC_B("preservebubble", PreserveBubble);
00044 GET_DATA_FUNC_B("ghostfluid", GhostFluid);
00045 GET_DATA_FUNC_B("variational", Variational);
00046 GET_DATA_FUNC_I("preconditioner", Preconditioner);
00047 GET_DATA_FUNC_I("numiter", NumIterations);
00048
00049 protected:
00050 explicit GAS_ProjectNonDivergent(const SIM_DataFactory *factory);
00051 virtual ~GAS_ProjectNonDivergent();
00052
00053
00054
00055 virtual bool solveGasSubclass(SIM_Engine &engine,
00056 SIM_Object *obj,
00057 SIM_Time time,
00058 SIM_Time timestep);
00059
00060
00061 void projectToNonDivergent(GU_Detail *gdp);
00062
00063 private:
00064 static const SIM_DopDescription *getDopDescription();
00065
00066 DECLARE_STANDARD_GETCASTTOTYPE();
00067 DECLARE_DATAFACTORY(GAS_ProjectNonDivergent,
00068 GAS_SubSolver,
00069 "Gas ProjectNonDivergent",
00070 getDopDescription());
00071 };
00072
00073 #endif