Page 1 of 1
Save Coordinates Crashes with (Discontinuous Galerkin) Heat Gap
Posted: 05 Mar 2022, 22:24
by tomatoma
Hello,
attached is a minimal example where 'Save Coordinates' crashes when the HeatGap between 2 bodies is active.
- mesh_image.jpg (54.14 KiB) Viewed 2206 times
OS: Win 8.1
Thanks,
Matteo
Re: Save Coordinates Crashes with (Discontinuous Galerkin) Heat Gap
Posted: 06 Mar 2022, 21:32
by Rich_B
Hello,
If one changes 'Discontinuous Galerkin' in Solver 1 to 'Discontinuous Bodies', then the example runs without a seg fault.
Rich.
Re: Save Coordinates Crashes with (Discontinuous Galerkin) Heat Gap
Posted: 06 Mar 2022, 22:30
by tomatoma
Hi Rich,
the purpose of the 'Discontinuous Galerkin' line is to implement a heat gap between the two bodies:
- Result_OK.JPG (30.41 KiB) Viewed 2195 times
If one replaces the line 'Discontinuous Galerkin' with 'Discontinuous Bodies' in solver 1, then the heat gap is ignored by the solver:
- Result_notOK.JPG (29.35 KiB) Viewed 2195 times
Thanks,
Matteo
Re: Save Coordinates Crashes with (Discontinuous Galerkin) Heat Gap
Posted: 07 Mar 2022, 01:10
by Rich_B
Hello Matteo,
If one changes 'Discontinuous Bodies' in the Result Solver section to 'Discontinuous Galerkin', it also lead to the seg fault. Note that the .vtu output file becomes significantly larger when both sections include 'Discontinuous Galerkin'. It also seems that the Result Solver and Save Scalar solver both perform the requested output, and then the seg fault occurs.
Rich.
Re: Save Coordinates Crashes with (Discontinuous Galerkin) Heat Gap
Posted: 07 Mar 2022, 12:04
by raback
Hi
For DG you need some special steps to choose the value related to a node. These were missing and I just made the fix in devel branch.
For historical reasons (implemented first) the "save coordinates" chooses the closest node. Usually it is actually better to perform interpolation. This is activated by "Exact Coordinates = True" and works even with the old version.
-Peter
Re: Save Coordinates Crashes with (Discontinuous Galerkin) Heat Gap [SOLVED]
Posted: 08 Mar 2022, 10:52
by tomatoma
Hello Peter,
problem solved!
Thanks!
Matteo