Calculation file

Moderator: GiD Team

Post Reply
TonyChenyu
Posts: 1
Joined: Thu Apr 04, 2019 10:14 pm

Calculation file

Post by TonyChenyu »

Hello guys, I just started using GiD to construct Mesh or stuffs like that in for my finite elements methode tasks.
Howerver I met a problem with exporting the file into a valid version of code which can be used in Matlab: every time when I click "calculation file", nothing happens and the command window shows me"file written OK", which of course is not OK at all...this appears only on my PCs, and it won't happen when I use the computers at my university. Does anyone know how to solve this? I didn't find any solutions in the Forum. Thanks in advance
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: Calculation file

Post by escolano »

What is the problemtype that you are using?
Probably you are using the MAT-fem problemtype that is an example of use of GiD with MatLab for FEM simulations.

When do you press 'Calculate' in this problemtype, it is writing the current mesh (and some extra data of boundary conditions and materials) in a file to be used after in MatLab. The output format is defined by the 'MAT-fem.bas' template file,
and by default the output file name is <modelname>.dat, probably do you must rename it to <modelname>.m to be used in MatLab.

If the file is not written, or is emtpy check the the current mesh and boundary conditions match the requirements of the problemtype (e.g. maybe you are meshing with elements not supported/expected by this academic problemtyp)

Note: the MAT-fem problemtypes in only a sample of interface between GiD and MatLab. The program MatLab itself is not included.
Post Reply