HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_Extrapolate.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GAS_Extrapolate.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_Extrapolate__
12 #define __GAS_Extrapolate__
13 
14 #include "GAS_API.h"
15 
16 #include "GAS_SubSolver.h"
17 #include "GAS_Utils.h"
18 
20 {
21 public:
22  GET_DATA_FUNC_S(GAS_NAME_SURFACE, SurfaceName);
23  GET_DATA_FUNC_S(GAS_NAME_FIELD, FieldName);
24  GET_DATA_FUNC_S(GAS_NAME_GEOMETRY, GeometryName);
25 
26  GET_DATA_FUNC_F("startiso", StartIso);
27  GET_DATA_FUNC_B("posdir", PositiveDir);
28 
29  GET_DATA_FUNC_B("usemaxdist", UseMaxDist);
30  GET_DATA_FUNC_F("maxdist", MaxDist);
31  GET_DATA_FUNC_B("usemaxcells", UseMaxCells);
32  GET_DATA_FUNC_F("maxcells", MaxCells);
33  GET_DATA_FUNC_B("usemaxspeed", UseMaxSpeed);
34  GET_DATA_FUNC_F("maxspeedscale", MaxSpeedScale);
35  GET_DATA_FUNC_B("useclamping", UseClamping);
36  GET_DATA_FUNC_F("clampvalue", ClampValue);
37  GET_DATA_FUNC_F("tol", Tolerance);
38 
39 protected:
40  explicit GAS_Extrapolate(const SIM_DataFactory *factory);
41  ~GAS_Extrapolate() override;
42 
43  /// Adds to the velocity field the effect of all forces at that point.
44  /// Unit density is currently assumed.
45  /// Only incorpreates the external simulation forces. Internal
46  /// gas forces are handled elsewher.
47  bool solveGasSubclass(SIM_Engine &engine,
48  SIM_Object *obj,
49  SIM_Time time,
50  SIM_Time timestep) override;
51 
52 private:
53  static const SIM_DopDescription *getDopDescription();
54 
58  "Gas Extrapolate",
59  getDopDescription());
60 };
61 
62 #endif
63 
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
#define GAS_NAME_GEOMETRY
Definition: GAS_Utils.h:30
GT_API const UT_StringHolder time
#define GAS_API
Definition: GAS_API.h:10
virtual bool solveGasSubclass(SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)=0
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:63
#define GAS_NAME_FIELD
Definition: GAS_Utils.h:27
#define GET_DATA_FUNC_B(DataName, FuncName)
#define GET_DATA_FUNC_F(DataName, FuncName)
#define GAS_NAME_SURFACE
Definition: GAS_Utils.h:38
#define GET_DATA_FUNC_S(DataName, FuncName)