public class AnsysCdbReader extends FemReaderBase
.cdb files.FemReaderBase.NumberingFemReaderWriterBase.ShellTypeDEFAULT_CHECK_ORIENTATION, DEFAULT_NUMBERING, DEFAULT_SCALING, DEFAULT_SHELL_THICKNESS, DEFAULT_SHELL_TYPE, DEFAULT_SUPRESS_WARNINGS, DEFAULT_USE_MEMBRANES, PRESERVE_NUMBERING, PRESERVE_NUMBERING_BASE0, RESET_NUMBERING, SUPPRESS_WARNINGS| Constructor and Description |
|---|
AnsysCdbReader(java.io.File file)
Creates a reader to read from a specified file.
|
AnsysCdbReader(java.io.Reader reader)
Creates a reader to read from a specified Reader.
|
AnsysCdbReader(java.lang.String filePath)
Creates a reader to read from a specified file.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
static FemModel3d |
read(FemModel3d fem,
java.io.File file,
double shellThickness,
FemReaderWriterBase.ShellType shellType,
int options)
Reads an FEM from a specifed file.
|
static FemModel3d |
read(FemModel3d fem,
java.io.File file,
int options)
Reads the geometry for an FEM model from a specified file.
|
static FemModel3d |
read(java.io.File file)
Creates an FEM and reads its geometry from a specifed file.
|
static FemModel3d |
read(java.lang.String filePath)
Creates an FEM and reads its geometry from a specifed file.
|
FemModel3d |
readFem(FemModel3d fem)
Reads an FEM from the file or Reader associated with this FEM reader.
|
close, getCheckOrientation, getNumbering, getScaling, getShellThickness, getShellType, getSuppressWarnings, setCheckOrientation, setNumbering, setScaling, setShellThickness, setShellType, setSuppressWarningspublic AnsysCdbReader(java.io.File file)
throws java.io.IOException
readFem(artisynth.core.femmodels.FemModel3d).file - file to read fromjava.io.IOException - if an I/O error occurredpublic AnsysCdbReader(java.lang.String filePath)
throws java.io.IOException
readFem(artisynth.core.femmodels.FemModel3d).filePath - path name of the file to read fromjava.io.IOException - if an I/O error occurredpublic AnsysCdbReader(java.io.Reader reader)
throws java.io.IOException
readFem(artisynth.core.femmodels.FemModel3d).reader - reader to read fromjava.io.IOException - if an I/O error occurredpublic static FemModel3d read(java.lang.String filePath) throws java.io.IOException
filePath - path name of the file to read fromjava.io.IOException - if an I/O error occurredpublic static FemModel3d read(java.io.File file) throws java.io.IOException
file - file to read fromjava.io.IOException - if an I/O error occurredpublic static FemModel3d read(FemModel3d fem, java.io.File file, int options) throws java.io.IOException
fem - FEM model to be populated by geometry data. If
null, a new model is createdfile - file to read fromoptions - flags controlling how the input is read.
Current flags include FemReaderBase.PRESERVE_NUMBERING,
FemReaderBase.PRESERVE_NUMBERING_BASE0, and
FemReaderBase.SUPPRESS_WARNINGS.java.io.IOException - if an I/O error occurredpublic static FemModel3d read(FemModel3d fem, java.io.File file, double shellThickness, FemReaderWriterBase.ShellType shellType, int options) throws java.io.IOException
fem - FEM whose geometry should be read from the file. If null, then an FEM is created.file - file to read fromshellThickness - default thickness to use for shell or membrane
elements, if not specified in the fileshellType - default shell type to use, if not specified in the fileoptions - option flags. Flags include FemReaderBase.PRESERVE_NUMBERING
and FemReaderBase.PRESERVE_NUMBERING_BASE0.java.io.IOException - if an I/O error occurredpublic FemModel3d readFem(FemModel3d fem) throws java.io.IOException
fem - FEM whose geometry should be read. If null, then an FEM is created.java.io.IOException - if an I/O error occurredpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException