Page 1 of 1

Ctrl-x Ctrl-c not exporting the .dat file in the case of cmas2d_customlib problemtype

Posted: Tue Feb 20, 2024 6:36 am
by Hemmi
Let us take an example based on the cmas2d_customlib problem type.
After standard processing of GiD, involving [Calculate] menu selection,
I can successfully get the MC-DISTANCE contour plot. So far all is well.

Next I removed {projectname}.dat and {projectname}.post.res from the working directory.
And I changed the mesh generation condition to either finer or coarser.
After remeshing, I went to [Files]>[Export]>Calculation file; not using the [Calculate] menu.
Unfortunately no new {projectname}.dat was exported.

Let me know how I can export the .dat file using Ctrl-x Ctrl-c operation.

Re: Ctrl-x Ctrl-c not exporting the .dat file in the case of cmas2d_customlib problemtype

Posted: Wed Feb 21, 2024 6:57 pm
by escolano
This is a small bug on last developer versions (do not happen in official versions)
We have fixed it for next 16.1.9d developer version, available soon.

This problemtype is writing the file invoked by the GiD_Event_AfterWriteCalculationFile
In any case you can export the file calling directly to the tcl procedure of the problemtype that implements this export:

Code: Select all

Cmas2d::WriteCalculationFile $filename
where filename is the full name of the file you want to write
e.g. can invoke from the lower entry with something like this

Code: Select all

-np- Cmas2d::WriteCalculationFile "C:/temp/my_file.dat"