Skip to content

Running an example from GiD

Rubén Zorrilla edited this page Mar 22, 2019 · 12 revisions

Running an example from GiD

1. Introduction

This first tutorial is intended to serve as a base for the rest of practical exercises of the course. Based on a simplified high-rise building design, a Computational Fluid Dynamics (CFD) case solving the flow around the building, a Computational Structural Mechanics (CSM) case solving the mechanics of an ideal representation of the building and a Fluid-Structure Interaction (FSI) coupling are presented.

To do that, the GiD pre and post-processor together with its Kratos Multiphysics Graphical User Interface (GUI) are used.

Since the aim of this Workshop course is to learn the basics Kratos Multiphysics usage all the examples required to follow this tutorial have been already included as a part of the interface so they can be automatically generated by just clicking on its corresponding button.

2. Get Kratos GiD GUI

First of all it is needed to have GiD installed in your machine. The installer of Windows and Linux official versions can be downloaded from this link.

Provided that you have already installed GiD, Kratos Multiphysics can be obtained using GiD internet retrieve tool. To do that, search for Data tab in the top toolbar and click on DataProblem typeKratos to start the download.

Once it is finished, you will have the Kratos Multiphysics GiD GUI together with a pre-compiled version of the current release, which allows to run the cases directly from GiD.

3. Set a Fluid Dynamics problem

3.1. Load the CFD GUI

To set a CFD problem we firstly need to load the Kratos GiD GUI. This is done by doing the previous sequence of commands DataProblem typeKratos in the top toolbar. Then the Kratos application market will appear in where the Fluid application must be selected.

Application market

After this, the fluid dynamics application market will appear. Among all the fluid related applications in Kratos, we will select the standard body-fitted Navier-Stokes CFD application by clicking on the Fluid button again.

Fluid application market

Finally we select the domain size by clicking on the 2D icon.

3.2. Load the high-rise building example

Now that we are in the 2D CFD interface we can load the predefined high-rise building example. To do that, it is only needed to click on the image below highlighted button to automatically generate the case.

High-rise building example button

(this case can be also retrieved from this link)

3.3. Main aspects of the GUI

After loading the case, the interface will look as the image below.

High-rise building example

Main things to remark in the previous image are are:

LEFT SIDE:

  • Strategy selection: Monolithic or Fractional Step (in CSM problems dynamic, quasi-static, static)
  • Material settings: Selection of the fluid domain surface and its physical properties
  • Boundary Conditions time intervals: Default and custom time intervals for the BCs application
  • Boundary Conditions: List of BCs (varies depending on the problem to solve)
  • Solver settings: Problem settings according to the selected strategy (e.g. convergence criteria, maximum iterations, linear solver type, time step, ...)

RIGHT SIDE:

  • Groups list: Can be brought up by clicking the groups tab. It lists the groups, which contain the geometrical entities that define the problem domain and BCs (be careful are not the same as layers!)
  • Group check: By clicking this button the contained entities in the selected group are highlighted.

3.4 Mesh and run

  • Save
  • Explain how to mesh it (say that the mesh settings are already programmed but can be customized)
  • Explain how to run it (comment on the files that are generated when running): mdpa geometry, json as a translation of the tree to the input and a main script to be run which calls Kratos. Info window, rocket icon...

3.5 Results post-processing

  • Explain how to visualize the results (go to post-process)
  • Say how to see contour fields and vector fields

4. Set a Structural Mechanics problem

(briefly since it is similar to the previous)

  • Use the predefined example
  • Explain the geometry and domain parts
  • Explain the boundary conditions
  • Explain the solver settings

5. Set a Fluid-Structure Interaction problem

(briefly since it is similar to the previous)

  • Use the predefined example
  • Explain the tree as a coupling of both previous tree plus the coupling stuff

6. Conclude

We have shown how to set some examples with the GiD GUI. There are more predefined examples to serve as example of other multiphysics problems in the GUI. To set or import custom geometries, we refer to GiD user manual (put the link) There are other post processors that can be used.

Project information

Getting Started

Tutorials

Developers

Kratos structure

Conventions

Solvers

Debugging, profiling and testing

HOW TOs

Utilities

Kratos API

Kratos Structural Mechanics API

Clone this wiki locally