use of org.vcell.vis.io.VtuFileContainer in project vcell by virtualcell.
the class ComsolVtkFileWriter method getEmptyVtuMeshFiles.
public VtuFileContainer getEmptyVtuMeshFiles(ComsolSimFiles comsolSimFiles, File primaryDirectory) throws IOException {
VtuFileContainer vtuFileContainer = new VtuFileContainer();
File comsolFile = comsolSimFiles.comsoldataFile;
String prefix = comsolFile.getName().replace(".comsoldat", "");
File emptyMeshFile = new File(comsolFile.getParentFile(), prefix + ".vtu");
byte[] vtuMeshFileContents = FileUtils.readByteArrayFromFile(emptyMeshFile);
vtuFileContainer.addVtuMesh(new VtuFileContainer.VtuMesh("domain", 0.0, vtuMeshFileContents));
return vtuFileContainer;
}
Aggregations