-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved vtk file reading using rectilinear mesh #254
Conversation
Fix some typos, style
…cleationModel and nucleationModel_preferential
@@ -729,6 +729,8 @@ inputFileReader::declare_parameters(dealii::ParameterHandler ¶meter_handl | |||
dealii::Patterns::Anything(), | |||
"The filename (not including the '.vtk' extension) for the file holding " | |||
"the grain structure to be loaded."); | |||
|
|||
parameter_handler.declare_entry("vtk file type","UNSTRUCTURED",dealii::Patterns::Anything(),"Whether to load a unstructured file for grain structure."); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a multiple selection pattern would be better here.
https://www.dealii.org/current/doxygen/deal.II/classPatterns_1_1MultipleSelection.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a need for the instructions pdf? I feel that these instructions ought to be left to the doxygen documentation or something along those lines.
One option would be to have the instructions a READme.md file within the graingrowth_dream3d app. I am still not sure what would make more sense. |
Looks like the merge I made introduced a bunch or errors. I'll retry it a little later this week. |
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.