16 #ifndef _VORTEXSHEET_H 17 #define _VORTEXSHEET_H 25 VortexSheetInfo() : vorticity(0.0), vorticitySmoothed(0.0), circulation(0.0), smokeAmount(1.0), smokeParticles(0.0) {}
28 Vec3 vorticitySmoothed;
30 Real smokeAmount, smokeParticles;
42 void addInterpol(
int a,
int b, Real alpha) { data.push_back((1.0-alpha)*data[a] + alpha*data[b]);}
43 void mergeWith(
int node,
int delnode, Real alpha) { data[node] = 0.5*(data[node]+data[delnode]); }
56 void addInterpol(
int a,
int b, Real alpha) { data.push_back(
TurbulenceInfo(data[a], data[b], alpha)); }
57 void mergeWith(
int node,
int delnode, Real alpha) { data[node] =
TurbulenceInfo(data[node], data[delnode], 0.5); }
65 virtual Mesh* clone();
67 virtual MeshType getType() {
return TypeVortexSheet; }
70 inline Vec3& tex1(
int i) {
return mTex1.data[i]; }
71 inline Vec3& tex2(
int i) {
return mTex2.data[i]; }
73 void setReferenceTexOffset(
const Vec3& ref) { mTexOffset = ref; }
77 PYTHON()
void calcCirculation();
78 PYTHON()
void calcVorticity();
79 PYTHON()
void reinitTexCoords();
Definition: commonkernels.h:22
Manages vortex sheet info.
Definition: vortexsheet.h:34
Base class for mesh data channels (texture coords, vorticity, ...)
Definition: mesh.h:90
Stores vortex sheet info.
Definition: vortexsheet.h:24
Manages k-epsilon information.
Definition: vortexsheet.h:53
Basic inlined vector class.
Definition: vectorbase.h:71
Node channel using only a vector.
Definition: mesh.h:77
Definition: vortexsheet.h:46
Triangle mesh class.
Definition: mesh.h:126
Base class for mesh data channels (texture coords, vorticity, ...)
Definition: mesh.h:64
Definition: vortexsheet.h:62
Manages 3D texture coordinates.
Definition: vortexsheet.h:39
Tri channel using only a vector.
Definition: mesh.h:103
Definition: fluidsolver.h:28