Modifier and Type | Class and Description |
---|---|
static class |
AutoFemReader.FemFileType |
Constructor and Description |
---|
AutoFemReader(java.io.File file) |
AutoFemReader(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
static AutoFemReader.FemFileType |
detectType(java.lang.String fileName)
Currently only detects type by file extension.
|
static FemModel3d |
read(FemModel3d model,
java.lang.String fileName,
AutoFemReader.FemFileType type)
Attempts to read a FEM file, filling in the model "model".
|
FemModel3d |
readFem(FemModel3d fem) |
public AutoFemReader(java.io.File file)
public AutoFemReader(java.lang.String filename)
public FemModel3d readFem(FemModel3d fem) throws java.io.IOException
public static FemModel3d read(FemModel3d model, java.lang.String fileName, AutoFemReader.FemFileType type) throws java.io.IOException
== null
, a new model is created.model
- the model to assemblefileName
- the file to read. For multi-file formats like ANSYS and TETGEN, supply the element file name,
or else it will try to find the corresponding ".ele" or ".elem" file to distinguish between themtype
- the file format (from ABAQUS, ANSYS, TETGEN
)java.io.IOException
- if there is a read errorpublic static AutoFemReader.FemFileType detectType(java.lang.String fileName)
fileName
- name of the model file