prisms-center / phaseField

PRISMS-PF: An Open-Source Phase-Field Modeling Framework
https://prisms-center.github.io/phaseField/
Other
229 stars 119 forks source link

Improved vtk file reading using rectilinear mesh #286

Closed supriyoumich closed 2 weeks ago

supriyoumich commented 2 weeks ago

These commits are for external file reading with vtk rectilinear mesh. Currently only unstructured mesh can be read through the input file. However, many problems do not require unstructured mesh. Therefore, rectilinear mesh can reduce the file size and improve the memory usage while reading the files.

If you want to read rectilinear file, include the following line just below "set Load grain structure" in your input parameter file: set vtk file type = RECTILINEAR

If you want to read unstructured mesh file, include the following line just below "set Load grain structure" in your input parameter file: set vtk file type = UNSTRUCTURED The default option for file reading is set as UNSTRUCTURED.

Example rectilinear vtk file named "20_grain_2D_RL.vtk" and parameters.prm file have been uploaded in the applications/graingrowth_dream3d for testing purpose. A pdf file named rectilinear_grid_instructions.pdf explaining how to create a rectilinear grid file from dream3d has been uploaded in the same location applications/graingrowth_dream3d/tex_files.

supriyoumich commented 2 weeks ago

Thanks Jason! you can change the instruction as needed, no problem.