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
How to calculate solution at every cell center point? #12777
Comments
Take a look at step-19 and how dealii/examples/step-19/step-19.cc Line 655 in 9e55702
You can simply fill Hope this helps! A general remark: normally we ask such type of questions on the google mailing list. PM |
Thank you very much for your suggestion. I am learning step-19 now. I am sorry that I cannot open "https://groups.google.com/g/dealii" net address. So I put my question as an issue. |
If you always need values at the cell center, another option is to use |
Thank you again! I have gotten my cell centers' solutions following @drwells suggestions and step-9 tutorial 'GradientEstimation' class. // scratch_data.fe_midpoint_value.get_function_values(scratch_data.solution, //my whole solutions at nodes; scratch_data.cell_midpoint_value(cell->active_cell_index()) = scratch_data.cmVal[0]; //push this cell center value to a full vector. |
Thank you very much for your helpful suggestions! I have solved my problem successfully with |
Dear every dealii user,
Wish you good day!
I am a beginner to dealii. The version that I am using is 9.3.0.
I have caught with a problem when I am solving my FEM problems. Could anyone please help me with it?
I am intended to get all active cells` center point values, so I followed the tutorials and use the following coding.
The problem is that when my active cell`s amount is large, this coding is in vastly slow calculation speed. I find another dealii method to solve the problem,
which is as follows. However, it is also very 'expensive' for very large amount of cells.
Are there any convenient and immediate methods in dealii version9.3.0 to get every cell center value?
I would be very appreciated if you can give me some suggestions.
Looking forward to your reply. Best wishes to you!
--
Yours,
sincerely.
The text was updated successfully, but these errors were encountered: