Re: [deal.II] DataOut

2024-12-04 Thread 王艺康
Thank you very much for your advice that solved my problem perfectly, thanks again! On Thursday, December 5, 2024 at 12:49:30 AM UTC+8 Wolfgang Bangerth wrote: > > On 12/4/24 07:27, 王艺康 wrote: > > ** > > > > I am using dealii to carry out a simulation using DataOut which is > > outputting my d

Re: [deal.II] DataOut

2024-12-04 Thread Wolfgang Bangerth
On 12/4/24 07:27, 王艺康 wrote: ** I am using dealii to carry out a simulation using DataOut which is outputting my data as a vtu file, I would like to extract the surface data of the vtu file but when I open the vtu file using paraview, there is no information about my boundaries saved in it,

[deal.II] DataOut

2024-12-04 Thread 王艺康
I am using dealii to carry out a simulation using DataOut which is outputting my data as a vtu file, I would like to extract the surface data of the vtu file but when I open the vtu file using paraview, there is no information about my boundaries saved in it, which leaves me with no way to extr

Re: [deal.II] DataOut class only offers 6 digit output for double type?

2022-02-08 Thread Wolfgang Bangerth
As the theme side, i gives a vector to a  DataOut object, the type of the vector entry is double, with 15 effective digit. But there is only 6 digit when write to a file (vtk or gpl). My vector is around  1647.99932, the result write into the file is 1648. How can i improve the presion of

Re: [deal.II] DataOut class only offers 6 digit output for double type?

2022-02-08 Thread Timo Heister
huyanzhuo, We compute and then output data inside DataOut as float (32 bit floating point) and not as double (64bit). Float has an accuracy of approximately 7 decimal digits, so your number would be roughly 1647.999 but it happens to be rounded up to 1648.000. I am afraid there is no easy way to c

[deal.II] DataOut class only offers 6 digit output for double type?

2022-02-08 Thread huyanzhuo
I'm using the 8.5.1 version. As the theme side, i gives a vector to a DataOut object, the type of the vector entry is double, with 15 effective digit. But there is only 6 digit when write to a file (vtk or gpl). My vector is around 1647.99932, the result write into the file is 1648. How c