GAS_ExternalForces Class Reference

#include <GAS_ExternalForces.h>

Inheritance diagram for GAS_ExternalForces:

GAS_SubSolver SIM_Solver SIM_OptionsUser SIM_Data

List of all members.

Public Types

enum  ScaleMethod { MASS, DENSITY }

Public Member Functions

 GET_DATA_FUNC_S (GAS_NAME_SURFACE, SurfaceName)
 GET_DATA_FUNC_S (GAS_NAME_DENSITY, DensityName)
 GET_DATA_FUNC_S (GAS_NAME_VELOCITY, VelocityName)
 GET_DATA_FUNC_S (GAS_NAME_GEOMETRY, GeometryName)
 GET_DATA_FUNC_S ("forcenames", ForceNames)
 GET_DATA_FUNC_B ("scalebysurface", ScaleBySurface)
 GET_DATA_FUNC_B ("scalebydensity", ScaleByDensity)
 GET_DATA_FUNC_I ("scaletype", ScaleType)
 GET_DATA_FUNC_B ("computev", ComputeVelocity)
 GET_DATA_FUNC_B ("stabledrag", StableDrag)
 GET_DATA_FUNC_B (GAS_NAME_USETIMESTEP, UseTimeStep)
 GET_DATA_FUNC_F (GAS_NAME_TIMESCALE, TimeScale)

Protected Member Functions

 GAS_ExternalForces (const SIM_DataFactory *factory)
virtual ~GAS_ExternalForces ()
virtual bool solveGasSubclass (SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)
void applyForcesToField (SIM_Object *obj, SIM_VectorField *velocity, SIM_ScalarField *surface, SIM_ScalarField *density, SIM_Time timestep)
 THREADED_METHOD8 (GAS_ExternalForces, velocity->getXField()->shouldMultiThread(), applyForceResolversToField, SIM_Object *, obj, UT_DMatrix4 &, toworldpoint, UT_DMatrix3 &, toselfvector, SIM_VectorField *, velocity, SIM_RawField *, surface, SIM_RawField *, density, SIM_Time, timestep, const UT_PtrArray< SIM_ForceResolver * > &, forceresolvers) void applyForceResolversToFieldPartial(SIM_Object *obj
void applyForcesToGeo (SIM_Object *obj, GU_Detail *gdp, SIM_Time timestep)
 THREADED_METHOD4 (GAS_ExternalForces, true, applyForceResolversToGeo, SIM_Object *, obj, GU_Detail *, gdp, SIM_Time, timestep, const UT_PtrArray< SIM_ForceResolver * > &, forceresolvers) void applyForceResolversToGeoPartial(SIM_Object *obj

Protected Attributes

UT_DMatrix4toworldpoint
UT_DMatrix4 UT_DMatrix3toselfvector
UT_DMatrix4 UT_DMatrix3
SIM_VectorField
velocity
UT_DMatrix4 UT_DMatrix3
SIM_VectorField SIM_RawField
surface
UT_DMatrix4 UT_DMatrix3
SIM_VectorField SIM_RawField
SIM_RawField
density
UT_DMatrix4 UT_DMatrix3
SIM_VectorField SIM_RawField
SIM_RawField SIM_Time 
timestep
UT_DMatrix4 UT_DMatrix3
SIM_VectorField SIM_RawField
SIM_RawField SIM_Time const
UT_PtrArray< SIM_ForceResolver * > & 
forceresolvers
UT_DMatrix4 UT_DMatrix3
SIM_VectorField SIM_RawField
SIM_RawField SIM_Time const
UT_PtrArray< SIM_ForceResolver * >
const UT_JobInfo
info
GU_Detailgdp
GU_Detail SIM_Time timestep
GU_Detail SIM_Time const
UT_PtrArray< SIM_ForceResolver * > & 
forceresolvers
GU_Detail SIM_Time const
UT_PtrArray< SIM_ForceResolver * >
const UT_JobInfo
info


Detailed Description

Definition at line 30 of file GAS_ExternalForces.h.


Member Enumeration Documentation

Enumerator:
MASS 
DENSITY 

Definition at line 49 of file GAS_ExternalForces.h.


Constructor & Destructor Documentation

GAS_ExternalForces::GAS_ExternalForces ( const SIM_DataFactory factory  )  [explicit, protected]

virtual GAS_ExternalForces::~GAS_ExternalForces (  )  [protected, virtual]


Member Function Documentation

void GAS_ExternalForces::applyForcesToField ( SIM_Object obj,
SIM_VectorField velocity,
SIM_ScalarField surface,
SIM_ScalarField density,
SIM_Time  timestep 
) [protected]

void GAS_ExternalForces::applyForcesToGeo ( SIM_Object obj,
GU_Detail gdp,
SIM_Time  timestep 
) [protected]

GAS_ExternalForces::GET_DATA_FUNC_B ( GAS_NAME_USETIMESTEP  ,
UseTimeStep   
)

GAS_ExternalForces::GET_DATA_FUNC_B ( "stabledrag"  ,
StableDrag   
)

GAS_ExternalForces::GET_DATA_FUNC_B ( "computev"  ,
ComputeVelocity   
)

GAS_ExternalForces::GET_DATA_FUNC_B ( "scalebydensity"  ,
ScaleByDensity   
)

GAS_ExternalForces::GET_DATA_FUNC_B ( "scalebysurface"  ,
ScaleBySurface   
)

GAS_ExternalForces::GET_DATA_FUNC_F ( GAS_NAME_TIMESCALE  ,
TimeScale   
)

GAS_ExternalForces::GET_DATA_FUNC_I ( "scaletype"  ,
ScaleType   
)

GAS_ExternalForces::GET_DATA_FUNC_S ( "forcenames"  ,
ForceNames   
)

GAS_ExternalForces::GET_DATA_FUNC_S ( GAS_NAME_GEOMETRY  ,
GeometryName   
)

GAS_ExternalForces::GET_DATA_FUNC_S ( GAS_NAME_VELOCITY  ,
VelocityName   
)

GAS_ExternalForces::GET_DATA_FUNC_S ( GAS_NAME_DENSITY  ,
DensityName   
)

GAS_ExternalForces::GET_DATA_FUNC_S ( GAS_NAME_SURFACE  ,
SurfaceName   
)

virtual bool GAS_ExternalForces::solveGasSubclass ( SIM_Engine engine,
SIM_Object obj,
SIM_Time  time,
SIM_Time  timestep 
) [protected, virtual]

Adds to the velocity field the effect of all forces at that point. Unit density is currently assumed. Only incorpreates the external simulation forces. Internal gas forces are handled elsewher.

Implements GAS_SubSolver.

GAS_ExternalForces::THREADED_METHOD4 ( GAS_ExternalForces  ,
true  ,
applyForceResolversToGeo  ,
SIM_Object ,
obj  ,
GU_Detail ,
gdp  ,
SIM_Time  ,
timestep  ,
const UT_PtrArray< SIM_ForceResolver * > &  ,
forceresolvers   
) [protected]

GAS_ExternalForces::THREADED_METHOD8 ( GAS_ExternalForces  ,
velocity->  getXField)->shouldMultiThread(,
applyForceResolversToField  ,
SIM_Object ,
obj  ,
UT_DMatrix4 ,
toworldpoint  ,
UT_DMatrix3 ,
toselfvector  ,
SIM_VectorField ,
velocity  ,
SIM_RawField ,
surface  ,
SIM_RawField ,
density  ,
SIM_Time  ,
timestep  ,
const UT_PtrArray< SIM_ForceResolver * > &  ,
forceresolvers   
) [protected]


Member Data Documentation

Definition at line 85 of file GAS_ExternalForces.h.

Definition at line 106 of file GAS_ExternalForces.h.

Definition at line 85 of file GAS_ExternalForces.h.

Definition at line 106 of file GAS_ExternalForces.h.

Reimplemented from GAS_SubSolver.

Definition at line 106 of file GAS_ExternalForces.h.

Reimplemented from GAS_SubSolver.

Definition at line 85 of file GAS_ExternalForces.h.

Definition at line 85 of file GAS_ExternalForces.h.

Reimplemented from GAS_SubSolver.

Definition at line 106 of file GAS_ExternalForces.h.

Reimplemented from GAS_SubSolver.

Definition at line 85 of file GAS_ExternalForces.h.

Definition at line 85 of file GAS_ExternalForces.h.

Definition at line 85 of file GAS_ExternalForces.h.

Definition at line 85 of file GAS_ExternalForces.h.


The documentation for this class was generated from the following file:

Generated on Mon Jan 28 00:48:12 2013 for HDK by  doxygen 1.5.9