When I write python and then manually write the beginning of the file, dealii reports an error
----------------------------------------------------
Exception on processing:
--------------------------------------------------------
An error occurred in line <273> of file
</home/wyk/dealii-candi/tmp/unpack/deal.II-v9.5.1/source/grid/grid_in.cc>
in function
void dealii::GridIn<dim, spacedim>::read_vtk(std::istream&) [with int
dim = 3; int spacedim = 3; std::istream = std::basic_istream<char>]
The violated condition was:
subcelldata.boundary_quads.size() == 0 &&
subcelldata.boundary_lines.size() == 0
Additional information:
You are trying to use functionality in deal.II that is currently not
implemented. In many cases, this indicates that there simply didn't
appear much of a need for it, or that the author of the original code
did not have the time to implement a particular case. If you hit this
exception, it is therefore worth the time to look into the code to
find out whether you may be able to implement the missing
functionality. If you do, please consider providing a patch to the
deal.II development sources (see the deal.II website on how to
contribute).
Stacktrace:
-----------
#0
/home/wyk/dealii-candi/tmp/build/deal.II-v9.5.1/lib/libdeal_II.g.so.9.5.1:
dealii::GridIn<3, 3>::read_vtk(std::istream&)
#1 ./step-54: Step54::TriangulationOnCAD::run()
#2 ./step-54: main
--------------------------------------------------------
Aborting!
----------------------------------------------------
make[3]: *** [CMakeFiles/run.dir/build.make:71:CMakeFiles/run] 错误 1
make[2]: *** [CMakeFiles/Makefile2:116:CMakeFiles/run.dir/all] 错误 2
make[1]: *** [CMakeFiles/Makefile2:123:CMakeFiles/run.dir/rule] 错误 2
make: *** [Makefile:137:run] 错误 2
On Sunday, November 24, 2024 at 11:35:30 AM UTC+8 王艺康 wrote:
> I am using gridin, read vtk file, in read_vtk to verify the line 1.2.3.4
> in the vtk file, the first line must be # vtk DataFile Version 3.0, because
> of the update of the vtk version, I am now using the new version 5.1 to
> read and write, I can only write the old version # vtk DataFile Version
> 4.2, 4.2 and 3.0 are in the same format, when I manually change 4.2 to 3.0,
> dealii still reports an error, # vtk DataFile Version 3.0 is not recognized.
>
> On Wednesday, November 13, 2024 at 10:49:41 PM UTC+8 Wolfgang Bangerth
> wrote:
>
>> On 11/12/24 21:31, 王艺康 wrote:
>> >
>> > I would like to inquire if dealii can only input vtk3.0
>>
>> Hi,
>> Is your question whether VTK is the only possible input format for
>> meshes, or
>> whether 3.0 is the only supported version for reading VTK?
>>
>> The answer to the first question is of course no. Take a look at the
>> GridIn
>> class to see which formats are supported. For the second question, you
>> can
>> link against the VTK library and I believe that then you can read
>> whatever
>> version the VTK library supports (but I'm not entirely sure about that).
>>
>> Best
>> W.
>>
>> --
>> ------------------------------------------------------------------------
>> Wolfgang Bangerth email: [email protected]
>> www: http://www.math.colostate.edu/~bangerth/
>>
>>
>>
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/dealii/83db2974-b954-4870-96b7-1cc875a0a2e5n%40googlegroups.com.
output.vtk
Description: Binary data
