17 #ifndef AGXMODEL_WINDANDWATERUTILS_H
18 #define AGXMODEL_WINDANDWATERUTILS_H
60 BELOW_SURFACE = 1 << 0,
61 ABOVE_SURFACE = 1 << 1,
63 CALCULATIONS_ENABLE = 1 << 3
148 void solveL(
Vector& x )
const;
149 void solveU(
Vector& x )
const;
175 return m_data[ m_n * i + j ];
180 return m_data[ m_n * i + j ];
agx::Bool isFactored() const
agx::Real operator()(agx::UInt i, agx::UInt j) const
agx::Bool solve(agxModel::dense::Vector &x)
SquareMatrix(agx::UInt size)
agx::UInt getSize() const
agx::RealValarray DataType
agx::Real & operator()(const agx::UInt i)
void resize(agx::UInt size)
const DataType & getData() const
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
AGXCORE_EXPORT const Real REAL_SQRT_EPSILON
std::valarray< agx::Real > RealValarray
For this module, vectors are defined using valarray.
Global triangle data (mapped with agxCollide::Mesh object) holding vertex indices.
agx::Vector< GlobalTriangleData > Container
agxModel::TriangleData::Container clipped
Container with clipped triangles if this global triangle has been clipped.
Triangle data for a normal or a clipped triangle.
agx::Int32 state
Current state of this triangle.
agx::Bool isBelowSurface() const
agx::Bool isClipped() const
agx::Vec3 worldNormal
Normal to this triangle given in world coordinate system.
agx::VectorPOD< TriangleData > Container
agx::Real area
Area of this triangle.
agx::Bool isCalculationsEnable() const
agx::Vec3 calculateNormal() const
agx::Real calculateArea() const
Vertex data for all global vertices in a mesh.
agx::Real heightFromSurface
Height from surface, negative if below the surface.
agx::VectorPOD< VertexData > Container
agx::Real pressure
Hydro- or aerostatic pressure.
agx::Vec3 worldPosition
World position of this vertex.
agx::Bool isBelowSurface() const
agx::Vec3 worldVelocityOfMedium
Velocity of the medium this vertex is in (water current or wind velocity).
agx::Vec3 worldVelocity
Velocity of this vertex given in world coordinate system.
agx::Bool isOnSurface(agx::Real threshold=agx::REAL_SQRT_EPSILON) const