Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
AnsysReader(java.io.File nodes,
java.io.File elems) |
AnsysReader(java.lang.String nodeFile,
java.lang.String elemFile) |
Modifier and Type | Method and Description |
---|---|
static FemModel3d |
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 FemModel3d |
read(FemModel3d model,
java.lang.String nodeFileName,
java.lang.String elemFileName)
Creates an FemModel with uniform density based on ANSYS data contained in
a specified file.
|
static FemModel3d |
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) |
FemModel3d |
readFem(FemModel3d fem) |
static java.util.LinkedHashMap<java.lang.Integer,Point3d> |
readNodeFile(java.io.Reader nodeReader,
boolean useAnsysNum) |
static java.lang.Integer[] |
readNodeIdxs(java.io.Reader nodeReader) |
public static int TETRAHEDRALIZE_HEXES
public static int ONE_BASED_NUMBERING
public AnsysReader(java.io.File nodes, java.io.File elems)
public AnsysReader(java.lang.String nodeFile, java.lang.String elemFile)
public FemModel3d readFem(FemModel3d fem) throws java.io.IOException
public static FemModel3d read(FemModel3d model, java.lang.String nodeFileName, java.lang.String elemFileName) throws java.io.IOException
model
- FEM model to be populated by ANSYS data. If null
, a
new model is creatednodeFileName
- path name of the ANSYS node fileelemFileName
- path name of the ANSYS element filejava.io.IOException
- if this is a problem reading the filepublic static FemModel3d 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 data. If null
, a
new model is creatednodeFileName
- 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 FemModel3d 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 data. If null
, a
new model is creatednodeReader
- 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