Cycle information through 3dec_console unavailable

Hi, I tried running 3DEC using the console application instead of the GUI. When I checked the console output, I saw that the cycle information was not shown (see attached snapshot).

I’ve had to do a fish callback that prints this to the console to check the model’s progress.

Is there anyway to fix this?

As a follow-up question, I tried to create a fish function that export the VTK file (.vtu) at a certain interval to monitor the results. I called the function below:

fish define export_vtk
    loop foreach cx block.subcontact.list
        d_ts = block.subcontact.prop(cx,'d_ts')
        if block.subcontact.type(cx) == 2 then
            continue
        endif
        face_p = block.subcontact.face(cx)
        zone_p  = block.face.zone(face_p)
        block.zone.extra(zone_p,1) = d_ts
    endloop
    filename = string.build("VTK_%1.vtu",math.round(mech.time.total-t0))
    command
        block vtk displacements on
        block vtk zone-extra on index 1
        block vtk stresses on
        block vtk filename [filename]
    endcommand
    io.out(string.build("VTK Exported at cycle %1 time %2",mech.cycle,mech.time.total - t0))
end

That essentially call the subcontact property “d_ts” and put that as either zone or gp extra variable.
However, when I import the vtu file, I get the group information instead of the zone extra variable (as seen in the snapshot below).

Is there something wrong with my method?

yes - we are aware of this problem and we are working on it.

Hi,
The group information is active by default. You can call “block vtk group off” to deactivate.
For zone extra, you might need to initialize zone extra 1 to 0.0. via the command “block zone initilize …”. If the extra 1 is not defined in a zone, this extra will not be exported.
Huy

Hi Huy,

Thank you for your reply. I couldn’t find the initialize extra option for the zones.

Did you mean to initialize the zone state instead?

EDIT: block zone initialize extra 1 0.0 Works!