Skip to content

Commit

Permalink
Merge branch 'master' into doc/fix-colab
Browse files Browse the repository at this point in the history
  • Loading branch information
roigcarlo committed Nov 8, 2024
2 parents 46a09dd + 2e25d6a commit b219d5e
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/pages/Kratos/For_Users/Crash_Course/1_Obtain_Kratos.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ python -m venv kratos_venv
This will create an isolated environment for Kratos. To activate or deactivate it, use the following commands:

Windows:
```ps1
```bash
# In cmd.exe
kratos_venv\bin\activate.bat

Expand All @@ -74,7 +74,7 @@ python -m pip install KratosMultiphysics-all
```
{: data-lang="Bash"}

⚠️ If you are a windows user, please also install: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
⚠️ If you are a windows user, please also install [Windows Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)

To verify the installation, run the following test in a Python session:

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/Kratos/For_Users/Crash_Course/2_Basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The model part file defines the geometry, mesh, boundary conditions, and initial

By organizing these files in a structured manner, you can define, configure, and execute a full Kratos simulation. Each of these files plays a critical role in building, solving, and post-processing your multiphysics problem. In the following sections, we’ll cover these files in detail, providing examples and explaining key configurations required for typical use cases.

These files are usually created by a GUI (GiD, Salome, Flowgraph) and used to directly start the simulation. As the aim of the course is not to learn how to use these tools, you can download the input files for a simple structural mechanics case [here](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Workshops_files/Kratos_Workshop_2019/Sources/2_Kratos_input_files_and_IO/2_Kratos_input_files_and_IO.zip).
These files are usually created by a GUI (GiD, Salome, Flowgraph) and used to directly start the simulation. As the aim of the course is not to learn how to use these tools, you can download the input files for a simple structural mechanics case [here](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Crash_Course/2_Basics.zip).

### 1.2. Run Kratos from the command line
Let's jump in and try the code:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/Kratos/For_Users/Crash_Course/3_Geometry.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,4 @@ vtk_output.PrintOutput()
vtk_output.ExecuteFinalizeSolutionStep()
vtk_output.ExecuteFinalize()
```
{: data-lang="Python"}
{: data-lang="Python"}
4 changes: 2 additions & 2 deletions docs/pages/Kratos/For_Users/Crash_Course/6_Multiphysics.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ The goal of this section is to become familiar with key aspects of multiphysics
The chosen problem is a case of fluid-thermal interaction.
One should become familiar with the various components involved in setting up and running such simulations, as well as the necessary steps to ensure the quality and physical relevance of results.

This tutorial will should one of the most simple multiphyscis applications, but we have tutorials for more complex examples with solver-level coupling in the [wiki]()
This tutorial will should one of the most simple multiphyscis applications, but we have tutorials for more complex examples with solver-level coupling in the [this advanced tutorial](../Tutorials/Multiphysics_Example.md)

Due to the complexity of the task and the time constraints, we will provide you with all the material. Please download the case from [here]() so you can follow the rest of the sections.
Due to the complexity of the task and the time constraints, we will provide you with all the material. Please download the case from [here](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Crash_Course/6_Multistage.zip) so you can follow the rest of the sections.

# 2. A brief note on how to do multiphysics

Expand Down
19 changes: 19 additions & 0 deletions docs/pages/Kratos/For_Users/Crash_Course/7_Exercices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: 7 - Exercises
keywords:
tags: [Kratos Crash Course Multiphyscis Exercices]
sidebar: kratos_for_users
summary:
---

# Exercices

In this section wou will find gides to severa exercices that you may find usefull during the coruse. For every exercice, you will have a link with the corresponding files to run. some of them are the ones that you have used as examples during the course with some aditional steps:

- [Basics](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Crash_Course/2_Basics.zip)
- [Data Management](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Crash_Course/3_Data_management.zip)
- [Solving Strategies](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Crash_Course/4_Solving_strategies.zip)
- [Solution Values](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Crash_Course/5_Manipulating_solution_values.zip)
- [Multistage](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Crash_Course/6_Multistage.zip)
- [Multiphyscis](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Crash_Course/7_Multiphysics.zip)
- [Eigen Values](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Crash_Course/8_Eigen_Values.zip)
3 changes: 2 additions & 1 deletion docs/pages/Kratos/For_Users/Crash_Course/menu_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"3_Geometry.md",
"4_Data.md",
"5_Simulation_Loop.md",
"6_Multiphysics.md"
"6_Multiphysics.md",
"7_Exercices.md"
]
}
4 changes: 2 additions & 2 deletions docs/pages/Kratos/For_Users/Tutorials/Multiphysics_Example.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Multiphysics Example
title: solver-level Multiphysics Example
keywords:
tags: [multiphysics_example.md]
sidebar: kratos_for_users
Expand All @@ -12,7 +12,7 @@ The main goal is to become familiar with key aspects of multiphysics simulations

The first example will be used in a black-box manner to discuss the most important details related to setting up such cases and the corresponding parameters. The second example depicts how one could create own - so customized - mapping and solvers to further enhance existing capabilities.

**Suggestion:** as soon as you are here, you should download the [source files](https://github.com/KratosMultiphysics/Documentation/blob/master/Workshops_files/Kratos_Workshop_2019/Sources/6_multiphysics/6_multiphysics.zip) and start running the respective simulations from the command line as explained in [Kratos input files and IO](https://github.com/KratosMultiphysics/Kratos/wiki/Kratos-input-files-and-IO) (section 2.2: _Run Kratos from the command line_) . As there are 2 examples intended to be shown, it would be sufficient if every other person would run one and the remaining participants the other, preferably in groups of two.
**Suggestion:** as soon as you are here, you should download the [source files](https://github.com/KratosMultiphysics/Documentation/raw/refs/heads/master/Crash_Course/7_Multiphysics.zip) and start running the respective simulations from the command line as explained in [Kratos input files and IO](https://github.com/KratosMultiphysics/Kratos/wiki/Kratos-input-files-and-IO) (section 2.2: _Run Kratos from the command line_) . As there are 2 examples intended to be shown, it would be sufficient if every other person would run one and the remaining participants the other, preferably in groups of two.
* Simulation 1: in `6_multiphysics\FSIBlackboxGeneric\MainKratos.py`
* Simulation 2: in `6_multiphysics\FSICustomizedSDoFVortexShedding\MainKratosFSI.py`

Expand Down

0 comments on commit b219d5e

Please sign in to comment.