artisynth.demos.fem
Class FemBeam3d

java.lang.Object
  extended by artisynth.core.modelbase.ModelComponentBase
      extended by artisynth.core.modelbase.ComponentList<ModelComponent>
          extended by artisynth.core.modelbase.ModelBase
              extended by artisynth.core.modelbase.RenderableModelBase
                  extended by artisynth.core.workspace.RootModel
                      extended by artisynth.demos.fem.FemBeam3d
All Implemented Interfaces:
ComponentChangeListener, ComponentListView<ModelComponent>, CompositeComponent, HasState, IndexedComponentList, Model, ModelComponent, MutableCompositeComponent<ModelComponent>, ParameterizedClass, RenderableComponent, java.awt.event.ActionListener, java.lang.Cloneable, java.lang.Iterable<ModelComponent>, java.util.Collection<ModelComponent>, java.util.EventListener, HasProperties, HierarchyNode, GLRenderable, GLSelectable, HasRenderProps, Renderable, Disposable, ListView<ModelComponent>, Scannable
Direct Known Subclasses:
ColoredFemBeam3d, HexBeam3d, HexIncompress, PlaneConstrainedFem, RobustCube, SelfCollision, TetBeam3d, ViscousBeam

public class FemBeam3d
extends RootModel


Nested Class Summary
 
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent
ModelComponent.NavpanelVisibility
 
Nested classes/interfaces inherited from interface artisynth.core.modelbase.CompositeComponent
CompositeComponent.NavpanelDisplay
 
Field Summary
static int ADD_BLOCKS
           
static int ADD_DISPLACEMENT
           
static int ADD_MUSCLES
           
static int CONSTRAIN_RIGHT_NODES
           
static boolean debug
           
static PropertyList myProps
           
static int NO_FIXED_NODES
           
static int VERTICAL
           
 
Fields inherited from class artisynth.core.workspace.RootModel
testSaveAndRestoreState
 
Fields inherited from class artisynth.core.modelbase.ComponentList
DEFAULT_NAVPANEL_DISPLAY
 
Fields inherited from class artisynth.core.modelbase.ModelComponentBase
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
 
Fields inherited from interface maspack.render.GLRenderable
TRANSLUCENT, TWO_DIMENSIONAL
 
Constructor Summary
FemBeam3d()
           
FemBeam3d(java.lang.String name)
           
FemBeam3d(java.lang.String name, java.lang.String type, double length, double widthy, double widthz, int nx, int ny, int nz, int options)
           
FemBeam3d(java.lang.String name, java.lang.String type, double length, double width, int nx, int nyz, int options)
           
FemBeam3d(java.lang.String name, java.lang.String type, int nx, int nyz, int options)
           
 
Method Summary
 void addDisplacementProbes(FemNode3d node, MechModel mech, double disp, double time)
           
 void addDisplacementProbes(int options, MechModel mech, java.util.LinkedList<FemNode3d> nodes, double disp, double time)
           
 MechModel addMechModel(FemModel3d mod)
           
 void attach(DriverInterface driver)
          Attach this root model to a driver program
 void computeLeftAndRightNodes()
           
 void detach(DriverInterface driver)
          Detach this root model from a driver program.
 java.lang.String getAbout()
          Returns a text string giving a short description of this model.
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 double getExcitation0()
           
 double getExcitation1()
           
 void printNodeStresses(java.lang.String fileName)
           
 void setDisplacementsFromFile(java.lang.String fileName)
           
 void setExcitation0(double e)
           
 void setExcitation1(double e)
           
 void setNodeStresses(java.lang.String fileName)
           
 void setRenderProperties(FemModel3d mod, double length)
           
 void writeDisplacementsToFile(java.lang.String fileName)
           
 void writeElementJacobiansToFile(java.lang.String fileName)
           
 
Methods inherited from class artisynth.core.workspace.RootModel
actionPerformed, addBreakPoint, addComponentChangeListener, addController, addController, addControlPanel, addControlPanel, addInputProbe, addInputProbe, addModel, addMonitor, addMonitor, addOutputProbe, addOutputProbe, addRenderable, addRenderable, addTracingProbe, addWayPoint, addWayPoint, advance, applyControllers, applyInputProbes, applyMonitors, applyOutputProbes, checkWrite, clear, clearRenderables, clearTraces, clearTracing, componentChanged, createState, disableAllTracing, disableTracing, dispose, enableTracing, getAdaptiveStepping, getControllers, getControlPanels, getControlPanelTabs, getDefaultViewOrientation, getInitialState, getInputProbes, getMainViewer, getMinStepSize, getModelMenuItems, getMonitors, getNextAdvanceTime, getNumTracables, getOutputProbes, getRoot, getState, getTraceSet, getTracingProbe, getTracingProbes, getViewerCenter, getViewerEye, getWayPoint, getWaypointChecking, getWayPoints, hasRoot, hasState, hasTracingProbes, initialize, isCheckEnabled, isFocusable, isTracing, loadControlPanel, makeMenuItem, mergeAllControlPanels, mergeControlPanel, models, notifyParentOfChange, notifyStructureChanged, postscan, prerender, removeAllControllers, removeAllControlPanels, removeAllInputProbes, removeAllModels, removeAllMonitors, removeAllOutputProbes, removeAllWayPoints, removeComponentChangeListener, removeController, removeControlPanel, removeInputProbe, removeModel, removeMonitor, removeOutputProbe, removeRenderable, removeRenderable, removeWayPoint, render, renderables, requestStop, rerender, scan, setAdaptiveStepping, setCheckEnabled, setDefaultValues, setDefaultViewOrientation, setFocusable, setMainViewer, setMaxStepSize, setMinStepSize, setState, setTracingProbesVisible, setViewerCenter, setViewerEye, setWaypointChecking, updateBounds
 
Methods inherited from class artisynth.core.modelbase.RenderableModelBase
createRenderProps, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, setRenderProps
 
Methods inherited from class artisynth.core.modelbase.ModelBase
copy, getInitialState, getMaxStepSize, hierarchyContainsReferences, preadvance, setInitialState
 
Methods inherited from class artisynth.core.modelbase.ComponentList
add, add, addAll, addComponents, addFixed, addNumbered, clone, contains, contains, containsAll, copy, ensureCapacity, findComponent, get, get, getByNumber, getChildren, getNavpanelDisplay, getNumberLimit, getShortName, getTypeParameter, hasChildren, hasParameterizedType, indexOf, isEmpty, iterator, nextComponentNumber, numComponents, remove, remove, removeAll, removeAll, removeComponents, retainAll, setNavpanelDisplay, setNumberingStartAtOne, setShortName, size, toArray, toArray, updateNameMap
 
Methods inherited from class artisynth.core.modelbase.ModelComponentBase
checkFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface artisynth.core.modelbase.ModelComponent
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
 
Methods inherited from interface maspack.properties.HasProperties
getProperty
 
Methods inherited from interface maspack.properties.HierarchyNode
getChildren, hasChildren
 
Methods inherited from interface maspack.util.Scannable
isWritable, write
 
Methods inherited from interface artisynth.core.modelbase.ComponentListView
getName
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

debug

public static boolean debug

ADD_BLOCKS

public static int ADD_BLOCKS

VERTICAL

public static int VERTICAL

ADD_DISPLACEMENT

public static int ADD_DISPLACEMENT

ADD_MUSCLES

public static int ADD_MUSCLES

NO_FIXED_NODES

public static int NO_FIXED_NODES

CONSTRAIN_RIGHT_NODES

public static int CONSTRAIN_RIGHT_NODES

myProps

public static PropertyList myProps
Constructor Detail

FemBeam3d

public FemBeam3d()

FemBeam3d

public FemBeam3d(java.lang.String name)

FemBeam3d

public FemBeam3d(java.lang.String name,
                 java.lang.String type,
                 int nx,
                 int nyz,
                 int options)

FemBeam3d

public FemBeam3d(java.lang.String name,
                 java.lang.String type,
                 double length,
                 double width,
                 int nx,
                 int nyz,
                 int options)

FemBeam3d

public FemBeam3d(java.lang.String name,
                 java.lang.String type,
                 double length,
                 double widthy,
                 double widthz,
                 int nx,
                 int ny,
                 int nz,
                 int options)
Method Detail

getAllPropertyInfo

public PropertyList getAllPropertyInfo()
Description copied from interface: HasProperties
Returns a list giving static information about all properties exported by this object.

Specified by:
getAllPropertyInfo in interface HasProperties
Overrides:
getAllPropertyInfo in class RootModel
Returns:
static information for all exported properties

getExcitation0

public double getExcitation0()

setExcitation0

public void setExcitation0(double e)

getExcitation1

public double getExcitation1()

setExcitation1

public void setExcitation1(double e)

setRenderProperties

public void setRenderProperties(FemModel3d mod,
                                double length)

computeLeftAndRightNodes

public void computeLeftAndRightNodes()

addMechModel

public MechModel addMechModel(FemModel3d mod)

setDisplacementsFromFile

public void setDisplacementsFromFile(java.lang.String fileName)

printNodeStresses

public void printNodeStresses(java.lang.String fileName)

setNodeStresses

public void setNodeStresses(java.lang.String fileName)

writeDisplacementsToFile

public void writeDisplacementsToFile(java.lang.String fileName)

writeElementJacobiansToFile

public void writeElementJacobiansToFile(java.lang.String fileName)

addDisplacementProbes

public void addDisplacementProbes(FemNode3d node,
                                  MechModel mech,
                                  double disp,
                                  double time)
                           throws java.io.IOException
Throws:
java.io.IOException

addDisplacementProbes

public void addDisplacementProbes(int options,
                                  MechModel mech,
                                  java.util.LinkedList<FemNode3d> nodes,
                                  double disp,
                                  double time)

attach

public void attach(DriverInterface driver)
Description copied from class: RootModel
Attach this root model to a driver program

Overrides:
attach in class RootModel
Parameters:
driver - Interface giving access to the frame and viewer

detach

public void detach(DriverInterface driver)
Description copied from class: RootModel
Detach this root model from a driver program.

Overrides:
detach in class RootModel

getAbout

public java.lang.String getAbout()
Returns a text string giving a short description of this model.

Overrides:
getAbout in class RootModel
Returns:
text description of this model