Topic: How to export the output with VTK format?

Dear developer
    Thanks for the share of the great code.
    When I learning the examples of the OOFEM, I want to see the outputs from the application. Since I compiled the OOFEM by Visual C++ , I didn't have the OOFEG for post. I modifed the outputs in the format of Gmsh, and viewed them by Gmsh successfully. But this is so slowly and complicated. So I want the OOFEM output the results in VTK format.
    So how to export the result automaticly to VTK format? Edit the file of exportmodulemanager.c and .h ?
    Wish the answer from you!
    Thanks!
    Best regards!

2

Re: How to export the output with VTK format?

Hi,

no coding is necessary, oofem supports vtk export. Please consult the oofem input manual, especially the section on Export modules (http://www.oofem.org/resources/doc/oofe … ode32.html).
I also attached a simple example demonstrating the use of vtk export module.

Borek

Re: How to export the output with VTK format?

Thank you Borek, I am new to OOFEM, but I like it much.
I should read the input manual carefully. The example offered by you is so helpful.
Thanks!
Have a nice day!

Joe

Re: How to export the output with VTK format?

Hi,
    It works. : )
    I have noticed the vtk export in xfem example offered by the source code. But when I uncomment the vtk export line(4th line), OOFEM prompt error. Now, by the example offered here, I realised the "nmodules 1" is needed when the vtk exports is used.
    Now, I have view the  results successfully in MayaVi.
    Thanks!

    Joe

Re: How to export the output with VTK format?

oofem is great i like this in first time so
this is very help full
thanks developer,

6 (edited by samson45 20-07-2010 05:19:32)

Re: How to export the output with VTK format?

thanks for the code you post in these message...you must more post to put tere so that many can read that you are un export the VTK....

make money online

7 (edited by LuisaStratman 23-07-2025 21:50:26)

Re: How to export the output with VTK format?

qiaoch wrote:

Dear developer
    Thanks for the great code.
    When I learning the examples of the OOFEM, I want to see the outputs from the application. Since I compiled the OOFEM by Visual C++ , I didn't have the OOFEG for post. I modifed the outputs in the format of Gmsh, and viewed them by Gmsh successfully. But this is so slowly and complicated. So I want the OOFEM output the results in VTK format.
    So how to export the result automaticly to VTK format? Edit the file of exportmodulemanager.c and .h ?
    Wish the answer from you!
    Thanks!
    Best regards!

Hey,
I am new to this too. I too was wondering if I could compile OOFEM using Visual C++? Secondly how do i export the files in VTK format?

8

Re: How to export the output with VTK format?

Hi,

you can compile oofem with Visual c++. The ready to use project for Visual c++ can be downloaded from oofem wiki (http://www.oofem.org/wiki/doku.php?id=i … ws_version).

To export results in vtk format, you should set up vtk export module in your input file. Read more about export modules in oofem input manual: http://www.oofem.org/resources/doc/oofe … ode33.html

Borek