Topic: VTK in fluid module

Hi!

I am trying to export the result of axi01.oofem.in to vtk. So I added "nmodules 1" to the analysis record and added the vtk line. So the beginning of the file now looks like:

axi01.oofem.out
axisymmetric 2D pipe test in radial direction, inlet velocity (constant), outlet: pressure, no friction
supg nsteps 10 lstype 0 smtype 1 deltaT 100.0 rtolv 1.e-4 alpha 0.5 renumber 1 nmodules 1
vtk tstep_all domain_all primvars 4
domain 2dIncompFlow
OutputManager tstep_all dofman_all element_all
ndofman 231 nelem 400 ncrosssect 1 nmat 1 nbc 3 nic 0 nltf 1
node 1 coords 3 1.000000e+00 0.000000e+00 0.000000e+00 bc 3 1 2 0
node 2 coords 3 5.000000e+00 0.000000e+00 0.000000e+00 bc 3 0 2 3
node 3 coords 3 5.000000e+00 2.000000e+00 0.000000e+00 bc 3 0 2 3

The 4 right after primvars comes from unknowntype.h and should mean velocity vector.. The output from oofem is:

____________________________________________________
           OOFEM - Finite Element Solver           
        Copyright (C) 1994-2009 Borek Patzak       
____________________________________________________
Total number of solution steps 10
_______________________________________________________
Error: (/home/carl/dev/oofem-1.9/src/sm/vtkexportmodule.C:81)
Input error: "Bad format", field keyword "primvars" (fieldID=19)
VTKExportModule::initializeFrom
_______________________________________________________
Total 1 error(s) and 0 warning(s) reported
oofem exit code 1



Am I doing something wrong here?

Thanks in advance!
/Carl

2

Re: VTK in fluid module

Hi Carl,

the problem is in vtk record, as the expected type of primvars is an integer array. The syntax for an array is "keyword array_size val1 ... valN".
So the right format should be:
vtk tstep_all domain_all primvars 1 4

Borek

Re: VTK in fluid module

Thanks!

Re: VTK in fluid module

This topic is helpful
Thanks!