![]() |
PeriDyno 1.0.0
|
#include <SimpleVelocityConstraint.h>
Public Types | |
typedef TDataType::Real | Real |
typedef TDataType::Coord | Coord |
typedef TDataType::Matrix | Matrix |
![]() | |
typedef std::vector< FBase * > | FieldVector |
typedef std::map< FieldID, FBase * > | FieldMap |
Public Member Functions | |
SimpleVelocityConstraint () | |
~SimpleVelocityConstraint () override | |
void | constrain () override |
bool | initialize () |
bool | resizeVector () |
void | initialAttributes () |
bool | visValueSet () |
bool | visValueSet (Real vis) |
bool | visVectorSet (CArray< Real > vis) |
bool | SIMPLE_IterNumSet (int i) |
bool | SetCross (Real visT, Real mag, Real k1, Real n1) |
DEF_ARRAYLIST_IN (int, NeighborIds, DeviceType::GPU, "") | |
DEF_ARRAY_IN (Coord, Position, DeviceType::GPU, "Input real particle position") | |
DEF_ARRAY_IN (Coord, Velocity, DeviceType::GPU, "Input particle velocity") | |
DEF_ARRAY_IN (Coord, Normal, DeviceType::GPU, "Input particle velocity") | |
DEF_ARRAY_IN (Attribute, Attribute, DeviceType::GPU, "Input particle velocity") | |
DEF_VAR_IN (Real, SmoothingLength, "") | |
DEF_VAR (Real, RestDensity, Real(1000), "Reference density") | |
DEF_VAR_IN (Real, SamplingDistance, "") | |
DEF_VAR_IN (Real, TimeStep, "") | |
DEF_VAR (Real, Viscosity, Real(5000.0), "Initial Viscosity Value") | |
DEF_VAR (bool, SimpleIterationEnable, true, "") | |
![]() | |
ConstraintModule () | |
~ConstraintModule () override | |
std::string | getModuleType () override |
![]() | |
Module (std::string name="default") | |
~Module (void) override | |
bool | initialize () |
void | update () |
void | setName (std::string name) |
std::string | getName () override |
virtual void | setParentNode (Node *node) |
Set the parent node. | |
Node * | getParentNode () |
SceneGraph * | getSceneGraph () |
bool | isInitialized () |
bool | attachField (FBase *field, std::string name, std::string desc, bool autoDestroy=true) override |
Attach a field to Base. | |
bool | isInputComplete () |
Check the completeness of input fields. | |
bool | isOutputCompete () |
DEF_VAR (bool, ForceUpdate, false, "") | |
void | setUpdateAlways (bool b) |
Set the update strategy for the module. | |
![]() | |
OBase () | |
~OBase () override | |
virtual std::string | caption () |
Return the caption. | |
virtual bool | captionVisible () |
Whether to hide the caption in the GUI. | |
virtual std::string | description () |
Return a description for the node or module, override this function to support user-defined description. | |
bool | addField (FBase *data) |
Add a field to Base FieldID will be set to the name of Field by default. | |
bool | addField (FieldID name, FBase *data) |
Add a field to Base. | |
bool | addFieldAlias (FieldID name, FBase *data) |
bool | addFieldAlias (FieldID name, FBase *data, FieldMap &fieldAlias) |
bool | findField (FBase *data) |
Find a field by its pointer. | |
bool | findFieldAlias (const FieldID name) |
Find a field by its name. | |
bool | findFieldAlias (const FieldID name, FieldMap &fieldAlias) |
Find a field in fieldAlias by its name This function is typically called by other functions. | |
bool | removeField (FBase *data) |
Remove a field by its pointer. | |
bool | removeFieldAlias (const FieldID name) |
Remove a field by its name. | |
bool | removeFieldAlias (const FieldID name, FieldMap &fieldAlias) |
FBase * | getField (const FieldID name) |
Return a field by its name. | |
std::vector< FBase * > & | getAllFields () |
template<typename T> | |
T * | getField (FieldID name) |
bool | isAllFieldsReady () |
Check the completeness of all required fields. | |
std::vector< FieldID > | getFieldAlias (FBase *data) |
int | getFieldAliasCount (FBase *data) |
void | setBlockCoord (float x, float y) |
float | bx () |
float | by () |
bool | findInputField (FBase *field) |
bool | addInputField (FBase *field) |
bool | removeInputField (FBase *field) |
std::vector< FBase * > & | getInputFields () |
bool | findOutputField (FBase *field) |
bool | addOutputField (FBase *field) |
bool | addToOutput (FBase *field) |
bool | removeOutputField (FBase *field) |
bool | removeFromOutput (FBase *field) |
std::vector< FBase * > & | getOutputFields () |
bool | findParameter (FBase *field) |
bool | addParameter (FBase *field) |
bool | removeParameter (FBase *field) |
std::vector< FBase * > & | getParameters () |
![]() | |
Object () | |
virtual | ~Object () |
ObjectId | objectId () |
Additional Inherited Members | |
![]() | |
static bool | registerClass (ClassInfo *ci) |
static Object * | createObject (std::string name) |
static std::map< std::string, ClassInfo * > * | getClassMap () |
static ObjectId | baseId () |
Base Id. | |
![]() | |
void | updateImpl () override |
![]() | |
virtual bool | initializeImpl () |
virtual void | preprocess () |
virtual void | postprocess () |
virtual bool | validateInputs () |
virtual bool | validateOutputs () |
virtual bool | requireUpdate () |
virtual void | updateStarted () |
Two functions called at the beginning and end of update() used for debug. | |
virtual void | updateEnded () |
![]() | |
std::vector< FBase * > | fields_input |
std::vector< FBase * > | fields_output |
std::vector< FBase * > | fields_param |
Definition at line 42 of file SimpleVelocityConstraint.h.
typedef TDataType::Coord dyno::SimpleVelocityConstraint< TDataType >::Coord |
Definition at line 47 of file SimpleVelocityConstraint.h.
typedef TDataType::Matrix dyno::SimpleVelocityConstraint< TDataType >::Matrix |
Definition at line 48 of file SimpleVelocityConstraint.h.
typedef TDataType::Real dyno::SimpleVelocityConstraint< TDataType >::Real |
Definition at line 46 of file SimpleVelocityConstraint.h.
dyno::SimpleVelocityConstraint< TDataType >::SimpleVelocityConstraint | ( | ) |
|
override |
|
overridevirtual |
Implements dyno::ConstraintModule.
dyno::SimpleVelocityConstraint< TDataType >::DEF_ARRAY_IN | ( | Attribute | , |
Attribute | , | ||
DeviceType::GPU | , | ||
"Input particle velocity" | ) |
dyno::SimpleVelocityConstraint< TDataType >::DEF_ARRAY_IN | ( | Coord | , |
Normal | , | ||
DeviceType::GPU | , | ||
"Input particle velocity" | ) |
dyno::SimpleVelocityConstraint< TDataType >::DEF_ARRAY_IN | ( | Coord | , |
Position | , | ||
DeviceType::GPU | , | ||
"Input real particle position" | ) |
dyno::SimpleVelocityConstraint< TDataType >::DEF_ARRAY_IN | ( | Coord | , |
Velocity | , | ||
DeviceType::GPU | , | ||
"Input particle velocity" | ) |
dyno::SimpleVelocityConstraint< TDataType >::DEF_ARRAYLIST_IN | ( | int | , |
NeighborIds | , | ||
DeviceType::GPU | , | ||
"" | ) |
dyno::SimpleVelocityConstraint< TDataType >::DEF_VAR | ( | bool | , |
SimpleIterationEnable | , | ||
true | , | ||
"" | ) |
dyno::SimpleVelocityConstraint< TDataType >::DEF_VAR | ( | Real | , |
RestDensity | , | ||
Real(1000) | , | ||
"Reference density" | ) |
dyno::SimpleVelocityConstraint< TDataType >::DEF_VAR | ( | Real | , |
Viscosity | , | ||
Real(5000.0) | , | ||
"Initial Viscosity Value" | ) |
dyno::SimpleVelocityConstraint< TDataType >::DEF_VAR_IN | ( | Real | , |
SamplingDistance | , | ||
"" | ) |
dyno::SimpleVelocityConstraint< TDataType >::DEF_VAR_IN | ( | Real | , |
SmoothingLength | , | ||
"" | ) |
dyno::SimpleVelocityConstraint< TDataType >::DEF_VAR_IN | ( | Real | , |
TimeStep | , | ||
"" | ) |
void dyno::SimpleVelocityConstraint< TDataType >::initialAttributes | ( | ) |
bool dyno::SimpleVelocityConstraint< TDataType >::initialize | ( | ) |
bool dyno::SimpleVelocityConstraint< TDataType >::resizeVector | ( | ) |
|
inline |
Definition at line 86 of file SimpleVelocityConstraint.h.
|
inline |
Definition at line 80 of file SimpleVelocityConstraint.h.
|
inline |
Definition at line 57 of file SimpleVelocityConstraint.h.
|
inline |
Definition at line 63 of file SimpleVelocityConstraint.h.
|
inline |
Definition at line 74 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 135 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 131 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 132 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 134 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 133 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 185 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 137 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 149 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 150 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 151 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 141 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 148 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 180 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 181 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 136 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 165 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 160 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 158 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 183 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 163 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 140 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 139 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 170 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 143 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 159 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 162 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 169 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 179 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 145 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 144 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 177 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 130 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 168 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 153 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 186 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 175 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 176 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 174 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 173 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 155 of file SimpleVelocityConstraint.h.
|
private |
Definition at line 154 of file SimpleVelocityConstraint.h.