JaRMoS
1.1
Java Reduced Model Simulations
|
An affine linear mesh transformation. More...
Public Member Functions | |
AffineLinearMeshTransform (float[][] functions) | |
AffineLinearMeshTransform (float[][] functions, int[] vertexLTFuncNr) | |
float[] | transformMesh (float[] vertices) |
An affine linear mesh transformation.
The different affine functions are stored in a 2D float array, where the first index corresponds to the function index, and the second the different components of the affine transformation (multiplication matrix and offset = 12 values)
See the "demo1" AffineFunctions::get_local_transformation method for an example.
Definition at line 15 of file AffineLinearMeshTransform.java.
jarmos.geometry.AffineLinearMeshTransform.AffineLinearMeshTransform | ( | float | functions[][] | ) |
Definition at line 27 of file AffineLinearMeshTransform.java.
jarmos.geometry.AffineLinearMeshTransform.AffineLinearMeshTransform | ( | float | functions[][], |
int[] | vertexLTFuncNr | ||
) |
Definition at line 31 of file AffineLinearMeshTransform.java.
float [] jarmos.geometry.AffineLinearMeshTransform.transformMesh | ( | float[] | vertices | ) |
Affine-linear transformation of a node to a new position. Uses the reference nodes and the LTfunc (linear transform function) to move the nodes to the specified location.
The crack in a pillar demo illustrates the use of this.
func is of size [number of subdomain, 12] a row of LTfunc is the rowwise flatten of the [3,3] transformation matrix and the [3,1] translation vector
Copies the current nodal data into vertex list (flattened out)
Implements jarmos.geometry.MeshTransform.
Definition at line 40 of file AffineLinearMeshTransform.java.