public class UCDReader extends java.lang.Object implements FemReader
Constructor and Description |
---|
UCDReader(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
static FemModel3d |
read(FemModel3d model,
java.io.Reader reader,
double density,
Vector3d scale)
Creates an FemModel with uniform density based on UCD data read from a
Reader.
|
static FemModel3d |
read(FemModel3d model,
java.lang.String fileName,
double density)
Creates an FemModel with uniform density based on UCD data
contained in a specified file.
|
static FemModel3d |
read(FemModel3d model,
java.lang.String fileName,
double density,
double scale)
Creates an FemModel with uniform density based on UCD data
contained in a specified file.
|
static FemModel3d |
read(FemModel3d model,
java.lang.String fileName,
double density,
Vector3d scale)
Creates an FemModel with uniform density based on UCD data
contained in a specified file.
|
FemModel3d |
readFem(FemModel3d fem) |
public FemModel3d readFem(FemModel3d fem) throws java.io.IOException
public static FemModel3d read(FemModel3d model, java.lang.String fileName, double density) throws java.io.IOException
model
- FEM model to be populated by UCD datafileName
- path name of the UCD filedensity
- density of the modeljava.io.IOException
- if this is a problem reading the filepublic static FemModel3d read(FemModel3d model, java.lang.String fileName, double density, double scale) throws java.io.IOException
model
- FEM model to be populated by UCD datafileName
- path name of the UCD filedensity
- density of the modelscale
- factor by which node coordinate data should be scaledjava.io.IOException
- if this is a problem reading the filepublic static FemModel3d read(FemModel3d model, java.lang.String fileName, double density, Vector3d scale) throws java.io.IOException
model
- FEM model to be populated by UCD datafileName
- path name of the UCD filedensity
- density of the modelscale
- if non-null, gives scaling about the x, y, and z axesjava.io.IOException
- if this is a problem reading the filepublic static FemModel3d read(FemModel3d model, java.io.Reader reader, double density, Vector3d scale) throws java.io.IOException
model
- FEM model to be populated by UCD datareader
- reader from which to read UCD datadensity
- density of the modelscale
- if non-null, gives scaling about the x, y, and z axesjava.io.IOException
- if this is a problem reading the file