|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartisynth.core.femmodels.AnsysReader
public class AnsysReader
A class to read an FEM described in the ANSYS file format.
Field Summary | |
---|---|
static int |
ONE_BASED_NUMBERING
Tells the reader to number the nodes and elements starting from one. |
static int |
TETRAHEDRALIZE_HEXES
Tells the reader to subdivide each hexahedral element into five tetrahedra. |
Constructor Summary | |
---|---|
AnsysReader()
|
Method Summary | |
---|---|
static void |
read(FemModel3d model,
java.io.Reader nodeReader,
java.io.Reader elemReader,
double density,
Vector3d scale,
int options)
Creates an FemModel with uniform density based on ANSYS data contained in a specified file. |
static void |
read(FemModel3d model,
java.lang.String nodeFileName,
java.lang.String elemFileName,
double density,
Vector3d scale,
int options)
Creates an FemModel with uniform density based on ANSYS data contained in a specified file. |
static java.util.LinkedHashMap<java.lang.Integer,java.util.ArrayList<java.lang.Integer>> |
readElemFile(java.io.Reader elemReader,
boolean useAnsysNum)
|
static java.util.LinkedHashMap<java.lang.Integer,Point3d> |
readNodeFile(java.io.Reader nodeReader,
boolean useAnsysNum)
|
static java.lang.Integer[] |
readNodeIdxs(java.io.Reader nodeReader)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int TETRAHEDRALIZE_HEXES
public static int ONE_BASED_NUMBERING
Constructor Detail |
---|
public AnsysReader()
Method Detail |
---|
public static void read(FemModel3d model, java.lang.String nodeFileName, java.lang.String elemFileName, double density, Vector3d scale, int options) throws java.io.IOException
model
- FEM model to be populated by ANSYS datanodeFileName
- path name of the ANSYS node fileelemFileName
- path name of the ANSYS element filedensity
- density of the modelscale
- if non-null, gives scaling about the x, y, and z axesoptions
- option flags. Should be an or-ed combination of
TETRAHEDRALIZE_HEXES
and ONE_BASED_NUMBERING
.
java.io.IOException
- if this is a problem reading the filepublic static void read(FemModel3d model, java.io.Reader nodeReader, java.io.Reader elemReader, double density, Vector3d scale, int options) throws java.io.IOException
model
- FEM model to be populated by ANSYS datanodeReader
- reader supplying node data in the ANSYS formatelemReader
- reader supplying element data in the ANSYS formatdensity
- density of the modelscale
- if non-null, gives scaling about the x, y, and z axesoptions
- option flags. Should be an or-ed combination of
TETRAHEDRALIZE_HEXES
and ONE_BASED_NUMBERING
.
java.io.IOException
- if this is a problem reading the filepublic static java.util.LinkedHashMap<java.lang.Integer,java.util.ArrayList<java.lang.Integer>> readElemFile(java.io.Reader elemReader, boolean useAnsysNum) throws java.io.IOException
java.io.IOException
public static java.util.LinkedHashMap<java.lang.Integer,Point3d> readNodeFile(java.io.Reader nodeReader, boolean useAnsysNum) throws java.io.IOException
java.io.IOException
public static java.lang.Integer[] readNodeIdxs(java.io.Reader nodeReader) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |