From 9dad30efe43a87a60d3923cf9d37dd663e3eda26 Mon Sep 17 00:00:00 2001
From: jobinhio <90212689+jobinhio@users.noreply.github.com>
Date: Wed, 22 Mar 2023 21:13:20 +0100
Subject: [PATCH] 152 turekkhron study (#154)
* update TureKhron #152
* add report from heatfluid toolbox #136
* add imagesprefix support for #152 as described in #144
---
.../examples/TurekHron/TurekHron.cfg | 6 +-
.../examples/TurekHron/TurekHron.json | 46 +-
.../heatfluid/pages/TurekHron/README.adoc | 5 +-
.../TurekHron/heatfluid-informations.adoc | 1268 +++++++++++++++++
4 files changed, 1304 insertions(+), 21 deletions(-)
create mode 100644 examples/modules/heatfluid/pages/TurekHron/heatfluid-informations.adoc
diff --git a/examples/modules/heatfluid/examples/TurekHron/TurekHron.cfg b/examples/modules/heatfluid/examples/TurekHron/TurekHron.cfg
index 3598e4dd..8bbd24a6 100644
--- a/examples/modules/heatfluid/examples/TurekHron/TurekHron.cfg
+++ b/examples/modules/heatfluid/examples/TurekHron/TurekHron.cfg
@@ -4,10 +4,10 @@ directory=toolboxes/heatfluid/TurekHron/
case.dimension=2
[heat-fluid]
-mesh.filename=$cfgdir/cfd.geo
-gmsh.hsize=0.03#0.01#0.01#0.03#0.02
+# mesh.filename=$cfgdir/cfd.geo
+# gmsh.hsize=0.03#0.01#0.01#0.03#0.02
-filename=$cfgdir/TurekHron.json
+json.filename=$cfgdir/TurekHron.json
snes-monitor=true
diff --git a/examples/modules/heatfluid/examples/TurekHron/TurekHron.json b/examples/modules/heatfluid/examples/TurekHron/TurekHron.json
index d2969dd6..3c21d749 100644
--- a/examples/modules/heatfluid/examples/TurekHron/TurekHron.json
+++ b/examples/modules/heatfluid/examples/TurekHron/TurekHron.json
@@ -2,6 +2,13 @@
{
"Name": "Fluid Mechanics",
"ShortName":"Fluid",
+ "Metadata":
+ {
+ "version": "1",
+ "author": ["vincentchabannes","prudhomm","lberti","jobinhio"],
+ "date": "23/09/2022",
+ "references":[""]
+ },
"Models":
{
"use-model-name":1,
@@ -10,6 +17,17 @@
"equations":"Navier-Stokes"
}
},
+ "Meshes":
+ {
+ "heatfluid":
+ {
+ "Import":
+ {
+ "filename":"$cfgdir/cfd.geo",
+ "hsize":"0.03"
+ }
+ }
+ },
"Parameters":
{
"ubar":"2",
@@ -29,9 +47,9 @@
// tag::bc[]
"BoundaryConditions":
{
- "velocity":
+ "fluid":
{
- "Dirichlet":
+ "velocity":
{
"inlet":
{
@@ -45,10 +63,7 @@
{
"expr":"{0,0}"
}
- }
- },
- "fluid":
- {
+ },
"outlet":
{
"outlet":
@@ -57,9 +72,9 @@
}
}
},
- "temperature":
+ "heat":
{
- "Dirichlet":
+ "temperature":
{
"inlet":
{
@@ -92,17 +107,14 @@
"PostProcess":
{
"use-model-name":1,
- "heat-fluid":
+ "heatfluid":
{
// tag::fields[]
"Exports":
{
"fields":["fluid.velocity","fluid.pressure","heat.temperature","fluid.pid"]
- }
+ },
// end::fields[]
- },
- "fluid":
- {
// tag::measures[]
"Measures":
{
@@ -120,11 +132,11 @@
"fields":"pressure"
}
}
- }
+ },
// end::measures[]
- },
- "heat":
- {
+ "heat":
+ {
+ }
}
}
diff --git a/examples/modules/heatfluid/pages/TurekHron/README.adoc b/examples/modules/heatfluid/pages/TurekHron/README.adoc
index 96fcdbff..a7ac834d 100644
--- a/examples/modules/heatfluid/pages/TurekHron/README.adoc
+++ b/examples/modules/heatfluid/pages/TurekHron/README.adoc
@@ -6,6 +6,8 @@
:uri-data: https://github.com/feelpp/toolbox/blob/master/examples/modules/{toolbox}/examples
:uri-data-edit: https://github.com/feelpp/toolbox/edit/master/examples/modules/{toolbox}/examples
+:imagesprefix:
+ifdef::env-github,env-browser,env-vscode[:imagesprefix: ../../assets/images/]
We consider the forced convection of an heat source at the entrance of a channel with a cylinder inside.
== Running the case
@@ -27,6 +29,7 @@ Copy case option to clipboard
++++
+NOTE: The report of the execution of the command above is available xref:TurekHron/heatfluid-informations.adoc[here].
== Data files
The case data files are available in Github link:{uri-data}/rotating-winch/[here]
@@ -44,7 +47,7 @@ the rectangle stem:[ \lbrack 0,Long \rbrack \times \lbrack 0,Haut \rbrack ]. It
[[ImageModelingCFDTurekHronGeometry]]
.Geometry of the Turek & Hron HeatFluid Benchmark
-image::TurekHron/TurekHronCFDGeometry.png[alt="TurekHron Geometry",align="center"]
+image:{imagesprefix}TurekHron/TurekHronCFDGeometry.png[alt="TurekHron Geometry",align="center"]
In order to describe the flow, the incompressible Navier-Stokes model is chosen for this case, define by the conservation of momentum equation and the conservation of mass equation. At them, we add the material constitutive equation, that help us to define stem:[\boldsymbol{\sigma}_f]
diff --git a/examples/modules/heatfluid/pages/TurekHron/heatfluid-informations.adoc b/examples/modules/heatfluid/pages/TurekHron/heatfluid-informations.adoc
new file mode 100644
index 00000000..60a7a156
--- /dev/null
+++ b/examples/modules/heatfluid/pages/TurekHron/heatfluid-informations.adoc
@@ -0,0 +1,1268 @@
+:sectnums:
+= Toolbox : heatfluid
+== Environment
+
+[cols="2"]
+|===
+<|prefix
+<|heat-fluid
+
+<|keyword
+<|heatfluid
+
+<|root repository
+<|/home/congo/feelppdb/toolboxes/heatfluid/TurekHron/np_1
+
+<|number of processus
+<|1
+|===
+
+== Materials Properties
+
+[cols="2"]
+|===
+<|number of materials
+<|1
+|===
+
+=== Material : Fluid
+
+[cols="5",options="header"]
+|===
+<|Name
+<|Expression
+<|Symbol
+<|Shape
+<|Components
+
+<|density
+<|1000.0
+<|materials_Fluid_rho
+<|scalar
+<|
+
+<|dynamic-viscosity
+<|1.0
+<|materials_Fluid_mu
+<|scalar
+<|
+
+<|specific-heat-capacity
+<|4185
+<|materials_Fluid_Cp
+<|scalar
+<|
+
+<|thermal-conductivity
+<|2.9E-5
+<|materials_Fluid_k
+<|scalar
+<|
+|===
+
+
+== Meshes
+=== Mesh : heatfluid
+
+[cols="2"]
+|===
+<|Discretization
+<|/Mesh/heatfluid
+
+<|filename
+<|/home/congo/feelppdb/toolboxes/heatfluid/TurekHron/np_1/heatfluid.mesh.msh
+|===
+
+==== Import configuration
+
+[cols="2"]
+|===
+<|geo-filename
+<|/home/congo/Bureau/toolbox/examples/modules/heatfluid/examples/TurekHron/cfd.geo
+
+<|hsize
+<|3.000000e-02
+
+<|generate-partitioning
+<|0
+|===
+
+==== Discretization
+
+[cols="2"]
+|===
+<|dim
+<|2
+
+<|h_average
+<|1.761258e-02
+
+<|h_max
+<|3.718473e-02
+
+<|h_min
+<|4.809110e-03
+
+<|n_elements
+<|6980
+
+<|n_faces
+<|10654
+
+<|n_partition
+<|1
+
+<|n_points
+<|3674
+
+<|order
+<|1
+
+<|real_dim
+<|2
+
+<|shape
+<|Simplex_2_1_2
+|===
+
+
+
+
+== Toolbox Heat
+=== Environment
+
+[cols="2"]
+|===
+<|prefix
+<|heat-fluid.heat
+
+<|keyword
+<|heat
+
+<|root repository
+<|/home/congo/feelppdb/toolboxes/heatfluid/TurekHron/np_1
+
+<|number of processus
+<|1
+|===
+
+=== Physics
+==== heat
+===== default
+
+[cols="2"]
+|===
+<|modeling
+<|heat
+
+<|type
+<|heat
+
+<|name
+<|default
+|===
+
+
+[cols="2"]
+|===
+<|Equation
+<|u dot nabla T - div( k grad T ) = 0
+|===
+
+====== Convection
+
+[cols="2"]
+|===
+<|expr
+<|{fluid_U_0,fluid_U_1}
+|===
+
+====== Parameters
+
+[cols="5",options="header"]
+|===
+<|Name
+<|Expression
+<|Symbol
+<|Shape
+<|Components
+
+<|convection
+<|{fluid_U_0,fluid_U_1}
+<|physics_heat_default_convection
+<|vectorial [2]
+0.249999999)+300*(y<0.25)*(y>0.15)
+
+<|markers
+