45 NURBS3DVolumeCylindrical,
55 const vector& localSystemCoordinates
60 localSystemCoordinates.x()*
cos(localSystemCoordinates.y()),
61 localSystemCoordinates.x()*
sin(localSystemCoordinates.y()),
62 localSystemCoordinates.z()
66 return cartesianCoors;
72 label globalPointIndex
75 const vector& localCoors = localSystemCoordinates_[globalPointIndex];
78 cos(localCoors.y()), -localCoors.x()*
sin(localCoors.y()), 0,
79 sin(localCoors.y()), localCoors.x()*
cos(localCoors.y()), 0,
83 return transformTensor;
92 forAll(cartesianPoints, pI)
99 cylindricalCoors.x() =
R;
100 cylindricalCoors.y() = theta;
101 cylindricalCoors.z() = cartesianPoints[pI].z();
102 localSystemCoordinates_[pI] = cylindricalCoors;
109 "cylindricalCoors" + name_,
110 mesh_.time().timeName(),
119 cylindricalCoors.write();
125 Foam::NURBS3DVolumeCylindrical::NURBS3DVolumeCylindrical
129 bool computeParamCoors
137 if (computeParamCoors)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
void updateLocalCoordinateSystem(const vectorField &cartesianPoints)
Update coordinates in the local system based on the cartesian points.
vector transformPointToCartesian(const vector &localCoordinates) const
Transform a point from its coordinate system to a cartesian system.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
tensor transformationTensorDxDb(label globalPointIndex)
Transformation tensor for dxdb, from local coordinate system to cartesian.
static const pointMesh & New(const polyMesh &mesh, Args &&... args)
Get existing or create MeshObject registered with typeName.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const fvMesh & mesh() const
Get mesh.
dimensionedScalar sqrt(const dimensionedScalar &ds)
GeometricField< vector, pointPatchField, pointMesh > pointVectorField
Ignore writing from objectRegistry::writeObject()
const Time & time() const
Return the top-level database.
vector origin_
Translation vector.
const pointVectorField & getParametricCoordinates()
Get parametric coordinates.
NURBS3DVolume morpher. Includes support functions for gradient computations Base class providing supp...
Macros for easy insertion into run-time selection tables.
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
void determineActiveDesignVariablesAndPoints()
Create lists with active design variables and control points.
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar sin(const dimensionedScalar &ds)
void writeCps(const fileName &="cpsFile", const bool transform=true) const
Write control points on a cartesian coordinates system for visualization.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
defineTypeNameAndDebug(combustionModel, 0)
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field values.
vector point
Point is a vector.
#define R(A, B, C, D, E, F, K, M)
Mesh data needed to do the Finite Volume discretisation.
Tensor of scalars, i.e. Tensor<scalar>.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
static constexpr const zero Zero
Global zero (0)