public class GmshWriter extends FemWriterBase
.msh
file.FemReaderWriterBase.ShellType
FemWriter.DataFormat, FemWriter.FloatType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version |
DEFAULT_FORMAT
Constructor and Description |
---|
GmshWriter(java.io.File file)
Creates a GmshWriter to write to a specified file.
|
GmshWriter(java.io.PrintWriter pw)
Creates a GmshWriter to write to a specified PrintWriter.
|
GmshWriter(java.lang.String filePath)
Creates a GmshWriter to write to a specified file.
|
Modifier and Type | Method and Description |
---|---|
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
GmshWriter.
|
public GmshWriter(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 GmshWriter(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 GmshWriter(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 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