Skip to content
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

Closed
wants to merge 24 commits into from

Conversation

supriyoumich
Copy link
Contributor

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.

@@ -729,6 +729,8 @@ inputFileReader::declare_parameters(dealii::ParameterHandler &parameter_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.");

Copy link
Contributor

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

Copy link
Contributor

@landinjm landinjm left a 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.

@david-montiel-t
Copy link
Contributor

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.

@landinjm
Copy link
Contributor

Looks like the merge I made introduced a bunch or errors. I'll retry it a little later this week.

@landinjm landinjm deleted the branch prisms-center:development November 1, 2024 19:23
@landinjm landinjm closed this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants