public class Vector3dSubElemField extends VectorSubElemField<Vector3d>
Vector3d
, defined over an FEM
model, using values set at the element integration points. Values at other
points are obtained by interpolation within the elements nearest to those
points. Values at elements for which no explicit values have been set are
given by the field's default value.
For a given element elem
, values should be specified for
all integration points, as returned by FemElement3dBase.getAllIntegrationPoints()
. This includes the regular
integration points, as well as the warping point, which is located at
the element center and is used by corotated linear materials. Integration
point indices should be in the range 0
to FemElement3dBase.numAllIntegrationPoints()
- 1.
ModelComponent.NavpanelVisibility
DEFAULT_SHELL_ELEMS_VISIBLE, DEFAULT_VOLUME_ELEMS_VISIBLE, myProps
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
Vector3dSubElemField()
This constructor should not be called by applications, unless
ModelComponentBase.scan(maspack.util.ReaderTokenizer, java.lang.Object) is called immediately after. |
Vector3dSubElemField(FemModel3d fem)
Constructs a field for a given FEM model, with a default value of 0.
|
Vector3dSubElemField(FemModel3d fem,
Vector3d defaultValue)
Constructs a field for a given FEM model and default value.
|
Vector3dSubElemField(java.lang.String name,
FemModel3d fem)
Constructs a named field for a given FEM model, with a default value of 0.
|
Vector3dSubElemField(java.lang.String name,
FemModel3d fem,
Vector3d defaultValue)
Constructs a named field for a given FEM model and default value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasParameterizedType()
Queries whether this class explicitly utilizes a parameterized type.
|
void |
setFromPolylines(PolylineMesh mesh,
double rad)
Sets the values for this field from a polyline mesh which specifies a
direction field.
|
clearAllValues, clearValue, equals, getElementValue, getShellElementValue, getSoftReferences, getValue, getValue, getValue, isValueSet, postscan, setValue, updateReferences
getAllPropertyInfo, getShellElemsVisible, getVolumeElemsVisible, setShellElemsVisible, setVolumeElemsVisible
createDefaultRenderProps, createRenderProps, createTypeInstance, equals, getDefaultValue, getParameterType, getRenderScale, getValue, prerender, render, setDefaultValue, setRenderScale
clearCacheIfNecessary, equals, getFemModel, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, setRenderProps, updateBounds
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearCacheIfNecessary
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable
getProperty
getChildren, hasChildren
isWritable, write
getSelection, isSelectable, numSelectionQueriesNeeded
getRenderHints, updateBounds
getRenderProps, setRenderProps
public Vector3dSubElemField()
ModelComponentBase.scan(maspack.util.ReaderTokenizer, java.lang.Object)
is called immediately after.public Vector3dSubElemField(FemModel3d fem)
fem
- FEM model over which the field is definedpublic Vector3dSubElemField(FemModel3d fem, Vector3d defaultValue)
fem
- FEM model over which the field is defineddefaultValue
- default value for integration points which don't have
explicitly set valuespublic Vector3dSubElemField(java.lang.String name, FemModel3d fem)
name
- name of the fieldfem
- FEM model over which the field is definedpublic Vector3dSubElemField(java.lang.String name, FemModel3d fem, Vector3d defaultValue)
name
- name of the fieldfem
- FEM model over which the field is defineddefaultValue
- default value for integration points which don't have
explicitly set valuespublic boolean hasParameterizedType()
hasParameterizedType
in interface ParameterizedClass
hasParameterizedType
in class VectorFemField<Vector3d>
true
if this class utilizes a parameterized type.public void setFromPolylines(PolylineMesh mesh, double rad)
mesh
- polyline mesh giving the direction fieldrad
- direction averaging radius