jvx.numeric
Class PnStiffMatrix
- java.lang.Object
-
- jv.object.PsObject
-
- jvx.numeric.PnSparseMatrix
-
- jvx.numeric.PnStiffMatrix
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PdMatrixIf
- Direct Known Subclasses:
- PnMassMatrix, PnStiffAniso, PnStiffConformal, PnStiffDiriConforming, PnStiffDiriNonConforming, PnStiffSpring
public class PnStiffMatrix extends PnSparseMatrix
Create and setup sparse representation of a stiffness matrix.- See Also:
- Serialized Form
- Author:
- Konrad Polthier
- Version:
- 27.03.13, 3.10 revised (kp) Methods computeStiffnessMatrix and computeRightVector moved from retargeting workshop to this class.
10.03.05, 3.00 revised (ep) Code moved to new superclass jvx.numeric.PnSparseMatrix.
11.03.03, 2.30 revised (kh) Static methods for matrix vector multiplication add.
20.12.01, 2.20 revised (ep) Internationalization.
08.11.00, 2.10 revised (kp) Number formatting replaced with PuString from Fmt.
03.09.99, 2.00 revised (kp) Method split in subclasses.
00.00.98, 1.00 created (kp)
-
-
Field Summary
Fields Modifier and Type Field and Description intm_noeNumber of elements in surface.-
Fields inherited from class jvx.numeric.PnSparseMatrix
USE_LARGER_BUFFER
-
Fields inherited from class jv.object.PsObject
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS
-
-
Constructor Summary
Constructors Constructor and Description PnStiffMatrix(PgElementSet surface)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static PdVectorcomputeRightVector(PgElementSet geom, PgVectorField field, boolean conforming, boolean rotateGradient, PdVector weights)Evaluate the right vector of the equations system Laplace(u) = div(K).static PnSparseMatrixcomputeStiffnessMatrix(PgElementSet geom, boolean conforming, PdVector weights)Compute the entries of the stiffness matrix either conforming or non-conforming.voidinit(PgElementSet surface)Initializes the stiffness matrix by computing the index vector and matrix entries.voidinit(PgElementSet domain, PgElementSet surface)Initializes the stiffness matrix by computing the index vector and matrix entries.-
Methods inherited from class jvx.numeric.PnSparseMatrix
add, add, addDiagonal, addDiagonal, addEntry, addNew, appendEntry, clear, clearColumn, clearRow, compress, concatMatrices, copy, copyNew, deleteColumn, deleteRow, extractRows, getColIndex, getColIndices, getColIndices, getDiagIndex, getEntries, getEntries, getEntry, getEntrySparse, getIndex, getNumCols, getNumEntries, getNumEntries, getNumRows, isEqualTo, isSquare, leftMultMatrix, leftMultVector, leftMultVector, leftMultVector, leftMultVector, multMatrices, multQuadratic, multScalar, multScalar, removeZeros, rightMultMatrix, rightMultVector, rightMultVector, rightMultVector, rightMultVector, setEntry, setEntrySparse, setNumEntries, setRow, setSize, setSize, setSize, sortEntries, sub, subNew, toPdMatrix, toShortString, toString, transpose, transpose, transposeNew, transposeNew, validate, vstackSparseMatrices
-
Methods inherited from class jv.object.PsObject
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, init, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, update, updatePanels
-
-
-
-
Constructor Detail
-
PnStiffMatrix
public PnStiffMatrix(PgElementSet surface)
-
-
Method Detail
-
init
public void init(PgElementSet surface)
Initializes the stiffness matrix by computing the index vector and matrix entries. Method can be used to reset the stiffness matrix. All memory allocation is done in constructor.
-
init
public void init(PgElementSet domain, PgElementSet surface)
Initializes the stiffness matrix by computing the index vector and matrix entries. Method can be used to reset the stiffness matrix. All memory allocation is done in constructor.
-
computeStiffnessMatrix
public static PnSparseMatrix computeStiffnessMatrix(PgElementSet geom, boolean conforming, PdVector weights)
Compute the entries of the stiffness matrix either conforming or non-conforming.- Parameters:
conforming- Specifies whether the matrix works on conforming or non-conforming maps.weights- Weights for each triangle. May be null.- Author:
- Matthias Nieser
- Version:
- 27.03.13, 2.00 created (kp) Method moved from retargeting workshop to this class.
09.09.11, 1.10 revised (mn) Added weights parameter.
25.02.11, 1.00 created (mn) Created from PnStiffMatrixOnCovering.computeStiffnessMatrix().
-
computeRightVector
public static PdVector computeRightVector(PgElementSet geom, PgVectorField field, boolean conforming, boolean rotateGradient, PdVector weights)
Evaluate the right vector of the equations system Laplace(u) = div(K). TODO: this method requires element normals, must be avoid and intrinsic rotation used TODO: place of this method must be re-thought!- Parameters:
geom- Geometry to work on.field- Given vector field.conforming- Whether the energy should operate on the set ofweights- Weights for each triangle. May be null.- Author:
- Matthias Nieser
- Version:
- 27.03.13, 2.00 created (kp) Method moved from retargeting workshop to this class.
09.09.11, 1.10 revised (mn) Added weights parameter.
25.02.11, 1.00 created (mn) Created from PnStiffMatrixOnCovering.computeRightVector.
-
-
"