public class FemModelDeformer extends FemModel3d implements java.awt.event.ActionListener
FemModel.ElementFilter, FemModel.IncompMethod, FemModel.Ranging, FemModel.StressStrainMeasure, FemModel.SurfaceRenderMechSystemBase.ConstraintForceStateSaverCollidable.Collidability, Collidable.GroupModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibilityMechSystem.ConstraintInfoCompositeComponent.NavpanelDisplayabortOnInvertedElems, checkTangentStability, debugx, DEFAULT_ABORT_ON_INVERTED_ELEMENTS, DEFAULT_GROUNDED, DEFAULT_HARD_INCOMP, DEFAULT_SOFT_INCOMP, DEFAULT_SURFACEMESH_NAME, defaultAutoGenerateSurface, detJStepReductionLimit, frameMassFraction, myProps, noIncompressStiffnessDamping, useFrameRelativeCouplingMasses, useNodalMassWeightsDEFAULT_STABILIZATION, DEFAULT_USE_IMPLICIT_FRICTION, myParametricsInSystemMatrix, mySaveForcesAsState, useAllDynamicCompsDEFAULT_MAX_STEP_SIZEDEFAULT_NAVPANEL_DISPLAYenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTG_ARTICULATED, TG_DRAGGER, TG_PRESERVE_ORIENTATION, TG_SIMULATINGAll, AllBodies, Deformable, Rigid, SelfCOPY_REFERENCES, REST_POSITIONSTATE_IS_VOLATILECOMPUTE_CONTACTS, UPDATE_CONTACTSTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
FemModelDeformer() |
FemModelDeformer(java.lang.String name,
MechModel mech,
int maxn) |
FemModelDeformer(java.lang.String name,
RootModel root,
int maxn) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
By default, this method does nothing.
|
void |
applyDeformation() |
ControlPanel |
createControlPanel() |
boolean |
getMenuItems(java.util.List<java.lang.Object> items)
Returns objects to be displayed under a "Model" menu in the main
ArtiSynth frame.
|
FemGeometryTransformer |
getTransformer() |
boolean |
hierarchyContainsReferences()
Returns true if the component hierarchy formed by this component and its
descendents is closed with respect to references.
|
javax.swing.JMenuItem |
makeMenuItem(java.lang.String cmd,
java.lang.String toolTip) |
void |
setForMechModel(java.lang.String name,
MechModel mech,
double wx,
double wy,
double wz,
int nx,
int ny,
int nz) |
void |
setForMechModel(java.lang.String name,
MechModel mech,
int maxn) |
void |
undoDeformation() |
addAuxMaterialBundle, addBilateralConstraints, addConnector, addCutPlane, addElement, addElements, addField, addGeneralMassBlocks, addMarker, addMarker, addMarker, addMaterialBundle, addMesh, addMesh, addMeshComp, addNode, addNodes, addNumberedElement, addNumberedMarker, addNumberedMarker, addNumberedNode, addNumberedShellElement, addPosJacobian, addShellElement, addShellElements, addSolveBlocks, addTransformableDependencies, addVelJacobian, attachFrame, checkElementCondition, clearAuxMaterialBundles, clearCutPlanes, clearElementConditionInfo, clearElements, clearFields, clearMaterialBundles, clearMeshComps, clearShellElements, collectStrainEnergy, computeStressAndStiffness, containsConnector, copy, createDefaultColorMap, createFrameAttachment, createFrameAttachment, createPointAttachment, createPointAttachment, createSurfaceMesh, dispose, findContainingElement, findNearestElement, findNearestElement, findNearestNode, findNearestNodes, findNearestShellElement, findNearestSurfaceElement, findNearestVolumetricElement, getAllElements, getAllPropertyInfo, getAttachments, getAugmentingMaterials, getAuxMaterialBundles, getAuxStateComponents, getAxisLength, getBilateralForces, getBilateralInfo, getBilateralSizes, getBVTree, getByNumber, getCollidable, getCollidableAncestor, getCollidables, getColorMap, getColorMapMode, getConnectors, getConstrainedComponents, getCopyReferences, getCutPlane, getCutPlanes, getDirectorRenderLen, getDynamicComponents, getDynamicComponents, getElement, getElementByNumber, getElementMaterial, getElementNeighbors, getElementRestVolumes, getElements, getElementWidgetSize, getElementWidgetSizeMode, getField, getFields, getFrame, getFrameConstraint, getHardIncompMethod, getIncompCompliance, getIncompForces, getIncompressible, getIncompressibleRange, getJacobianType, getMassMatrixValues, getMaterialBundles, getMeshComp, getMeshComp, getMeshComps, getNodalPlotRange, getNodalPlotRangeX, getNode, getNodeByNumber, getNodeNeighbors, getNodes, getOneBasedNodeElementNumbering, getSelection, getShellElement, getShellElementByNumber, getShellElements, getShellSurfaceElement, getSoftIncompMethod, getSoftIncompMethodRange, getState, getSurfaceElement, getSurfaceMesh, getSurfaceMeshComp, getSurfaceMeshes, getSurfaceNode, getSurfaceVertex, getTetAspectRatios, getUseConsistentMass, handleComponentChanged, hasHexMesh, hasTetMesh, invalidateElementRotationData, invalidateRestData, invalidateStressAndStiffness, invalidateSurfaceMesh, isAbortOnInvertedElements, isAutoGeneratingSurface, isCompound, isDeformable, isDuplicatable, isFrameRelative, isFreeBody, isGrounded, isSurfaceEdge, isSurfaceMeshValid, isSurfaceNode, isVolumeValid, isWarnOnInvertedElements, markInvertedRestElements, mulInverseMass, numAllElements, numCutPlanes, numElements, numFields, numHexElements, numMeshComps, numQuadraticElements, numShellElements, numSurfaceMeshes, numTetElements, postscan, prerender, printANSYSElements, printANSYSNodes, recursivelyFinalizeAdvance, recursivelyInitialize, removeAuxMaterialBundle, removeConnector, removeCutPlane, removeElement, removeField, removeMaterialBundle, removeMeshComp, removeNode, removeShellElement, render, resetRestPosition, scaleDistance, scaleMass, scan, scanMesh, scanMesh, scanSurfaceMesh, scanSurfaceMesh, setAbortOnInvertedElements, setAutoGenerateSurface, setAxisLength, setBilateralForces, setCollidable, setColorMap, setColorMapMode, setComputeStrainEnergy, setDirectorRenderLen, setElementWidgetSize, setElementWidgetSizeMode, setFrameRelative, setGrounded, setIncompCompliance, setIncompForces, setIncompressible, setMaterial, setOneBasedNodeElementNumbering, setSoftIncompMethod, setState, setSurfaceMesh, setSurfaceMeshComp, setUseConsistentMass, setWarnOnInvertedElements, subdivideHex, subdivideHexs, transformGeometry, transformGeometry, transformPose, updateBounds, updateConstraints, updateSlavePos, updateStress, updateStressAndStiffness, updateStressStrainRenderFlags, usingAttachedRelativeFrame, writeSurfaceMesh, writeSurfaceMesh, zeroForcesaddFrictionConstraints, addMarker, addMarker, addMarker, addMarker, addMarker, addMarker, addUnilateralConstraints, applyForces, attachments, attachPoint, checkVelocityStability, clear, clearComputeNodalStressStrain, componentChanged, createDefaultMaterial, detachAllNodes, detachPoint, forcesNeedUpdating, getCharacteristicSize, getCollidables, getComputeNodalEnergyDensity, getComputeNodalStrain, getComputeNodalStress, getComputeStrainEnergy, getConstrainers, getDensity, getDensityMode, getEnergy, getForceEffectors, getFrictionForces, getFrictionState, getGravity, getGravityMode, getImplicitIterations, getImplicitPrecision, getKineticEnergy, getMass, getMassDamping, getMaterial, getNodeMass, getNumInverted, getParticleDamping, getRestVolume, getSlaveObjectComponents, getStiffnessDamping, getStrainEnergy, getStressPlotRange, getStressPlotRangeMode, getStressPlotRanging, getStressPlotRangingMode, getSurfaceRendering, getSurfaceRenderingMode, getToleranceType, getUnilateralForces, getUnilateralInfo, getUnilateralSizes, getUnilateralState, getVolume, hasState, markers, maxFrictionConstraintSets, needsNodalStress, numNodes, printNodeMasses, propertyChanged, removeMarker, resetAutoStressPlotRange, setBounds, setComputeNodalEnergyDensity, setComputeNodalStrain, setComputeNodalStress, setComputeNodalStressStrain, setDensity, setDensityMode, setFrictionForces, setFrictionState, setGravity, setGravity, setGravityMode, setImplicitIterations, setImplicitPrecision, setLinearMaterial, setMassDamping, setMaxStepSize, setParticleDamping, setStiffnessDamping, setStressPlotRange, setStressPlotRangeMode, setStressPlotRanging, setStressPlotRangingMode, setSurfaceRendering, setSurfaceRenderingMode, setToleranceType, setUnilateralForces, setUnilateralState, updateRestVolume, updateSlaveVel, updateVolume, zeroExternalForcesaddActivePosImpulse, addAttachmentJacobian, addAttachmentSolveBlocks, addGeneralSolveBlocks, addPosJacobian, addVelJacobian, advance, advanceAuxState, applyAttachmentForces, buildMassMatrix, buildSolveMatrix, closePrintStateFile, collectInitialForces, createState, createVelocityJacobian, getActiveDampingMatrix, getActiveDynamicComponents, getActiveForces, getActiveMass, getActiveMassMatrix, getActivePosDerivative, getActivePosState, getActivePosStateSize, getActiveStiffnessMatrix, getActiveVelState, getActiveVelState, getActiveVelStateSize, getAttachmentConstraints, getAttachmentDerivatives, getAuxAdvanceState, getAuxVarDerivative, getAuxVarState, getAuxVarStateSize, getBilateralConstraints, getBilateralConstraintSizes, getBilateralForces, getBilateralInfo, getDefaultMatrixSolver, getDefaultStabilization, getDefaultUseImplicitFriction, getDynamicComponents, getDynamicDOFs, getDynamicsEnabled, getForceEffectors, getForces, getFrictionConstraints, getFrictionForces, getFrictionState, getInitialState, getIntegrator, getInverseMassMatrix, getMassMatrix, getMatrixSolver, getMatrixSolverRange, getNumBilateralForces, getNumUnilateralForces, getParametricForces, getParametricPosState, getParametricPosStateSize, getParametricPosTarget, getParametricVelState, getParametricVelStateSize, getParametricVelTarget, getPenetrationLimit, getPrintState, getProfiling, getSolveMatrixType, getSolver, getStabilization, getState, getStructureVersion, getUnilateralConstraints, getUnilateralConstraintSizes, getUnilateralForces, getUnilateralInfo, getUnilateralState, getUpdateForcesAtStepEnd, getUpdateForcesAtStepEndMode, getUseImplicitFriction, initialize, isBilateralStructureConstant, numActiveComponents, numAttachedComponents, numParametricComponents, openPrintStateFile, placeDynamicComponent, preadvance, printActiveMass, printActiveMass, printActiveStiffness, printActiveStiffness, recursivelyPrepareAdvance, reduceVelocityJacobian, reopenPrintStateFile, setActiveForces, setActivePosState, setActiveVelState, setAuxAdvanceState, setAuxVarState, setBilateralForces, setDefaultMatrixSolver, setDefaultStabilization, setDefaultUseImplicitFriction, setDynamicsEnabled, setForces, setFrictionForces, setFrictionState, setIntegrator, setMatrixSolver, setParametricForces, setParametricPosState, setParametricVelState, setPenetrationLimit, setPrintState, setPrintState, setProfiling, setStabilization, setState, setUnilateralForces, setUnilateralState, setUpdateForcesAtStepEnd, setUpdateForcesAtStepEndMode, setUseImplicitFriction, topMechSystem, updateAttachmentPos, updateAttachmentVel, updateConstraints, updateDynamicComponentLists, updateForceComponentList, updateForces, updatePosState, updateVelState, writeBilateralConstraintMatrix, writeBilateralConstraintMatrix, writeMassMatrix, writeMassMatrix, writePrintStateHeader, writeStiffnessMatrix, writeStiffnessMatrixcreateRenderProps, getRenderHints, getRenderProps, isSelectable, numSelectionQueriesNeeded, setRenderPropscopy, getDefaultMaxStepSize, getMaxStepSize, hasParameterizedType, setDefaultMaxStepSizeadd, add, addAll, addComponents, addFixed, addNumbered, clone, contains, contains, containsAll, ensureCapacity, findComponent, get, get, getChildren, getMinNumber, getNavpanelDisplay, getNumberLimit, getOneBasedNumbering, getParameterType, getShortName, hasChildren, incrementNumbering, indexOf, invalidateNumbers, isEditable, isEmpty, iterator, nextComponentNumber, numComponents, remove, remove, removeAll, removeAll, removeComponents, resetNumbersToIndices, retainAll, set, setEditable, setNavpanelDisplay, setNumbered, setOneBasedNumbering, setShortName, size, toArray, toArray, updateNameMapcheckFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformPriorityadvanceState, getAuxVarDerivative, getAuxVarState, getStateVersion, hasState, numAuxVars, requiresAdvance, setAuxVarStateconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenisWritable, writegetMaxStepSizegetNameequals, hashCode, parallelStream, removeIf, spliterator, streamrecursivelyFindpublic FemModelDeformer()
public FemModelDeformer(java.lang.String name,
RootModel root,
int maxn)
public FemModelDeformer(java.lang.String name,
MechModel mech,
int maxn)
public void setForMechModel(java.lang.String name,
MechModel mech,
int maxn)
public void setForMechModel(java.lang.String name,
MechModel mech,
double wx,
double wy,
double wz,
int nx,
int ny,
int nz)
public javax.swing.JMenuItem makeMenuItem(java.lang.String cmd,
java.lang.String toolTip)
public ControlPanel createControlPanel()
public void undoDeformation()
public void applyDeformation()
public boolean getMenuItems(java.util.List<java.lang.Object> items)
ModelBaselist
argument. The objects should be be items capable of being added to a
JMenu, including Component, JMenuItem, and String.
If the method returns false (the default behavior), that is
taken to indicate that this component has no menu items.getMenuItems in interface HasMenuItemsgetMenuItems in class ModelBaseitems - collects the objects that should be addedfalse if there are no items to add to the
model menu.GuiUtils.createMenuItem(java.awt.event.ActionListener, java.lang.String, java.lang.String)public void actionPerformed(java.awt.event.ActionEvent event)
ModelBaseModelBase.getMenuItems(java.util.List<java.lang.Object>).actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class ModelBasepublic boolean hierarchyContainsReferences()
ModelBaseIn particular, this means that one does not need to search outside the hierarchy when looking for dependencies.
hierarchyContainsReferences in interface CompositeComponenthierarchyContainsReferences in class ModelBasepublic FemGeometryTransformer getTransformer()