-
Notifications
You must be signed in to change notification settings - Fork 258
Running an example from GiD
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.
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 Data
→ Problem type
→ Kratos
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.
- Load the GUI
- Use the predefined example
- Explain the geometry and domain parts
- Explain the boundary conditions
- Explain the solver settings
- Explain how to mesh it
- 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
- Explain how to visualize the results (post-process)
(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
(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
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.
- Getting Kratos (Last compiled Release)
- Compiling Kratos
- Running an example from GiD
- Kratos input files and I/O
- Data management
- Solving strategies
- Manipulating solution values
- Multiphysics
- Video tutorials
- Style Guide
- Authorship of Kratos files
- Configure .gitignore
- How to configure clang-format
- How to use smart pointer in Kratos
- How to define adjoint elements and response functions
- Visibility and Exposure
- Namespaces and Static Classes
Kratos structure
Conventions
Solvers
Debugging, profiling and testing
- Compiling Kratos in debug mode
- Debugging Kratos using GDB
- Cross-debugging Kratos under Windows
- Debugging Kratos C++ under Windows
- Checking memory usage with Valgind
- Profiling Kratos with MAQAO
- Creating unitary tests
- Using ThreadSanitizer to detect OMP data race bugs
- Debugging Memory with ASAN
HOW TOs
- How to create applications
- Python Tutorials
- Kratos For Dummies (I)
- List of classes and variables accessible via python
- How to use Logger
- How to Create a New Application using cmake
- How to write a JSON configuration file
- How to Access DataBase
- How to use quaternions in Kratos
- How to do Mapping between nonmatching meshes
- How to use Clang-Tidy to automatically correct code
- How to use the Constitutive Law class
- How to use Serialization
- How to use GlobalPointerCommunicator
- How to use PointerMapCommunicator
- How to use the Geometry
- How to use processes for BCs
- How to use Parallel Utilities in futureproofing the code
- Porting to Pybind11 (LEGACY CODE)
- Porting to AMatrix
- How to use Cotire
- Applications: Python-modules
- How to run multiple cases using PyCOMPSs
- How to apply a function to a list of variables
- How to use Kratos Native sparse linear algebra
Utilities
Kratos API
Kratos Structural Mechanics API