How to create the problem type.gid folder with the new problem type generator
For some of the applications are already available the folders that allow you to automatically create the problem type. That is the case of the edgebase_levelset problem type, for instance.
How to create the custom_problemtype.gid folder
Go to the directory of your application where you put all the files for the construction of the problem type. For instance in the case of the incompressible fluid application, go to
be sure to have the custom_text_file (without extension) where, among all other settings you have to chose the name of your custom_problem_type (first line of the customized text file) and type
python /home/.../kratos/problemtype_generator/problemtype.py CUSTOM_TEXT_FILE
this procedure allows the creation of the folder CUSTOM_PROBLEMTYPE_NAME.gid to be copied into the GiD problem_type folder.
Using the problem type
Problem types generated using this method will attempt to launch a Python script file when GiD's Calculate button is clicked. This means that the problem type needs to know where to find both Python and Kratos in your computer. To achieve this, some additional configuration is required.
Add the following line at the end of your .bashrc file, containing the path to your kratos folder:
This will create an environment variable containing the path to kratos.
If you use Windows, to create an environment variable open the system window from the control panel. Go to the Advanced options tab and click the environment variables button. If you want this variable to be available to all users on this computer, click the New button under system variables and provide "KRATOS_PATH" as name and the path as value. To create the variable only for the current user, click the New button under user variables instead.