public class AnsysCdbWriter extends FemWriterBase
.cdb
file.Modifier and Type | Class and Description |
---|---|
static class |
AnsysCdbWriter.AnsysType |
static class |
AnsysCdbWriter.EBlockKey
Controls how EBLOCKs are written
|
FemReaderWriterBase.ShellType
FemWriter.DataFormat, FemWriter.FloatType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version |
DEFAULT_FORMAT
Constructor and Description |
---|
AnsysCdbWriter(java.io.File file)
Creates an AnsysCdbWriter to write to a specified file.
|
AnsysCdbWriter(java.io.PrintWriter pw)
Creates an AnsysCdbWriter to write to a specified PrintWriter.
|
AnsysCdbWriter(java.lang.String filePath)
Creates an AnsysCdbWriter to write to a specified file.
|
Modifier and Type | Method and Description |
---|---|
AnsysCdbWriter.EBlockKey |
getEBlockKey()
Queries the key used for writing EBLOCKs.
|
boolean |
getUseEtBlock()
Queries whether the ETBLOCK command is used for defining
element types.
|
void |
setEBlockKey(AnsysCdbWriter.EBlockKey key)
Sets the key used for writing EBLOCKs.
|
void |
setUseEtBlock(boolean enable)
Sets whether the ETBLOCK command is used for defining element types.
|
static void |
write(java.io.File file,
FemModel3d fem)
Writes FEM model geometry to a specified file.
|
static void |
write(java.lang.String filePath,
FemModel3d fem)
Writes FEM model geometry to a specified file.
|
void |
writeFem(FemModel3d fem)
Writes FEM model geometry to the writer or file associates with this
AnsysCdbWriter.
|
public AnsysCdbWriter(java.io.PrintWriter pw) throws java.io.IOException
writeFem(artisynth.core.femmodels.FemModel3d)
.pw
- writer to write tojava.io.IOException
- if an I/O error occurredpublic AnsysCdbWriter(java.io.File file) throws java.io.IOException
writeFem(artisynth.core.femmodels.FemModel3d)
.file
- file to write tojava.io.IOException
- if an I/O error occurredpublic AnsysCdbWriter(java.lang.String filePath) throws java.io.IOException
writeFem(artisynth.core.femmodels.FemModel3d)
.filePath
- path name of the file to write tojava.io.IOException
- if an I/O error occurredpublic boolean getUseEtBlock()
true
if ETBLOCK command is usedpublic void setUseEtBlock(boolean enable)
false
.enable
- if true
, the ETBLOCK command will be usedpublic AnsysCdbWriter.EBlockKey getEBlockKey()
public void setEBlockKey(AnsysCdbWriter.EBlockKey key)
AnsysCdbWriter.EBlockKey.SOLID
.key
- key for writing EBLOCKspublic static void write(java.lang.String filePath, FemModel3d fem) throws java.io.IOException
filePath
- path name of the file to write tofem
- FEM model to be writtenjava.io.IOException
- if an I/O error occurredpublic static void write(java.io.File file, FemModel3d fem) throws java.io.IOException
file
- file to write tofem
- FEM model to be writtenjava.io.IOException
- if an I/O error occurredpublic void writeFem(FemModel3d fem) throws java.io.IOException
writeFem
in interface FemWriter
writeFem
in class FemWriterBase
fem
- FEM model to be writtenjava.io.IOException
- if an I/O error occurred