Skip to content

Commit a9e10ee

Browse files
committed
2 parents 3520f16 + 03d6838 commit a9e10ee

77 files changed

Lines changed: 1098 additions & 281 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ dist
1515
*.tgz
1616
null
1717
__pycache__
18+
*.whl

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ If you need the developer version, you are on the right place.
2525
* 4.1- To execute Kratos using the standard pip packages:
2626
* Python version recommended: 3.8, 3.9, 3.10, 3.11
2727
* Open a terminal and run
28-
- Linux: `python3 -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.3.2`
29-
- Windows: `python -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.3.2`
28+
- Linux: `python3 -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.4.2`
29+
- Windows: `python -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.4.2`
3030
* 4.2- To execute Kratos using your compiled binaries:
3131
* Fill the Kratos preferences windows with
3232
- Path to the python folder

dockers/create-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

33
# Change directory to the specified directory
4-
cd /tmp/dist/kratos-9.3.2/
4+
cd /tmp/dist/kratos-9.4.2/
55
find . -type f -name "*.unix.bat" -print0 | xargs -0 dos2unix
66

77
# Add execute permission to all .bat files in the directory
88
# chmod 755 *.bat
99

1010
# Create a tgz file from the directory
11-
tar -czf ../kratos-9.3.2-linux-64.tgz *
11+
tar -czf ../kratos-9.4.2-linux-64.tgz *
1212

dockers/deploy.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set krversion=9.3.2
1+
set krversion=9.4.2
22
set pyversion=3.10.5
33
@REM 3.10.10-alpine3.17
44
echo "Building kratos %krversion% on python %pyversion%"

dockers/dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Default values. Use --build-arg on build to change
2-
ARG pyversion=3.10.8
2+
ARG pyversion=3.11
33

44
# Base pyton image
55
FROM python:$pyversion
@@ -8,10 +8,14 @@ FROM python:$pyversion
88
# Update pip
99
RUN pip install --upgrade pip
1010

11-
ARG krversion=9.3.2
11+
ARG krversion=9.4.2
12+
13+
# WORKDIR /tmp
14+
# COPY ./wheels/ ./wheels/
1215

1316
# Install Kratos and dependencies
1417
RUN python3 -m pip install KratosMultiphysics-all==$krversion numpy
18+
# RUN python3 -m pip install ./wheels/*.whl
1519

1620
# Prepare run folder
1721
WORKDIR "/model"

kratos.gid/apps/Buoyancy/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"write": {
3838
"coordinates": "all",
3939
"properties_location": "json",
40-
"model_part_name": "ThermalModelPart"
40+
"model_part_name": "ThermalModelPart",
41+
"write_mdpa_mode": "entities"
4142
},
4243
"main_launch_file": "../../exec/MainKratos.py",
4344
"examples": "examples/examples.xml"

kratos.gid/apps/Buoyancy/write/write.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ proc ::Buoyancy::write::writeModelPartEvent { } {
2020

2121
# Start Fluid write variables
2222
Fluid::write::Init
23+
# Fluid has implemented the geometry mode, but we do not use it yet in inherited apps
24+
::Fluid::write::SetAttribute write_mdpa_mode [::Buoyancy::GetWriteProperty write_mdpa_mode]
2325
# Start Fluid write conditions map from scratch
2426
Fluid::write::InitConditionsMap
2527

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<condition n="GenericModelParts" pn="Add SubModelPart" un="GenericSubmodelPart" ov="point,line,surface,volume" icon="generic" >
33
<value n="WriteNodes" pn="Write nodes" v="True" values="True,False" state="disabled" />
4-
<value n="WriteElements" pn="Write elements" v="False" values="True,False" state="[checkStateByUniqueName SMP_write_mode elements_and_conditions]"/>
5-
<value n="WriteConditions" pn="Write conditions" v="True" values="True,False" state="[checkStateByUniqueName SMP_write_mode elements_and_conditions]"/>
4+
<value n="WriteElements" pn="Write elements" v="False" values="True,False" state="[ShowInWriteMode Entitites]"/>
5+
<value n="WriteConditions" pn="Write conditions" v="True" values="True,False" state="[ShowInWriteMode Entitites]"/>
66
</condition>

kratos.gid/apps/CompressibleFluid/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"materials_file": "FluidMaterials.json",
4343
"properties_location": "json",
4444
"model_part_name": "FluidModelPart",
45-
"output_model_part_name": "fluid_computational_model_part"
45+
"output_model_part_name": "fluid_computational_model_part",
46+
"write_mdpa_mode": "entities"
4647
},
4748
"main_launch_file": "python/MainKratos.py",
4849
"examples": "examples/examples.xml",

kratos.gid/apps/CompressibleFluid/write/write.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ namespace eval ::CompressibleFluid::write {
1010
proc ::CompressibleFluid::write::Init { } {
1111
# Namespace variables inicialization
1212
::Fluid::write::Init
13+
# Fluid has implemented the geometry mode, but we do not use it yet in inherited apps
14+
::Fluid::write::SetAttribute write_mdpa_mode [::CompressibleFluid::GetWriteProperty write_mdpa_mode]
1315

1416
SetAttribute parts_un [::Fluid::GetUniqueName parts]
1517
SetAttribute nodal_conditions_un [::CompressibleFluid::GetUniqueName nodal_conditions]

0 commit comments

Comments
 (0)