Calculation file

Moderator: GiD Team

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

Calculation file

Postby TonyChenyu » Thu Apr 04, 2019 10:24 pm

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
Posts: 1699
Joined: Thu Sep 18, 2014 3:31 pm

Re: Calculation file

Postby escolano » Fri Apr 05, 2019 2:20 pm

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.

Return to “Import/Export”

Who is online

Users browsing this forum: No registered users and 1 guest