diff --git a/examples/modules/heatfluid/examples/cabin/cabin2d.cfg b/examples/modules/heatfluid/examples/cabin/cabin2d.cfg index 1428a833..ea425798 100755 --- a/examples/modules/heatfluid/examples/cabin/cabin2d.cfg +++ b/examples/modules/heatfluid/examples/cabin/cabin2d.cfg @@ -6,8 +6,6 @@ case.dimension=2 [heat-fluid] filename=$cfgdir/cabin2d.json -mesh.filename=$cfgdir/cabin2d.geo -gmsh.hsize=0.05#0.03 linearsystem-cst-update=false jacobian-linear-update=false diff --git a/examples/modules/heatfluid/examples/cabin/cabin2d.json b/examples/modules/heatfluid/examples/cabin/cabin2d.json index 0527220e..9444d9d4 100644 --- a/examples/modules/heatfluid/examples/cabin/cabin2d.json +++ b/examples/modules/heatfluid/examples/cabin/cabin2d.json @@ -2,14 +2,31 @@ { "Name": "Fluid Mechanics", "ShortName":"Fluid", + "Metadata": + { + "version": "1", + "author": ["vincentchabannes","prudhomm","lberti","jobinhio"], + "date": "28/11/2022", + "references":[""] + }, "Models": { - "use-model-name":1, "fluid": { "equations":"Navier-Stokes" } }, + "Meshes": + { + "heatfluid": + { + "Import": + { + "filename":"$cfgdir/cabin2d.geo", + "hsize":"0.05" // 0.03 + } + } + }, // tag::params[] "Parameters": { @@ -32,17 +49,14 @@ "BoundaryConditions": { // tag::bc-fluid[] - "velocity": + "fluid": { - "Dirichlet": + "velocity": { - "inlet" : {"expr":"{0,-Uin*(0.05-x)*(x+0.05)*400*(1-exp(-5*t)),0}:x:y:z:t:Uin"}, + "inlet" : {"expr":"{0,-Uin*(0.05-x)*(x+0.05)*400*(1-exp(-5*t))}:x:y:z:t:Uin"}, "passengers" : {"expr":"{0,0}"}, "walls" : {"expr":"{0,0}"} - } - }, - "fluid": - { + }, "outlet": { "outlet1": @@ -58,9 +72,9 @@ }, // end::bc-fluid[] // tag::bc-t[] - "temperature": + "heat": { - "Dirichlet": + "temperature": { "inlet" : {"expr":"20-(20-Tin)*(1-exp(-t)):t:Tin"} //"passengers" : {"expr":"20+15*(1-exp(-t)):t"} @@ -88,20 +102,19 @@ // tag::exp[] "PostProcess": { - "use-model-name":1, - "heat-fluid": + // "use-model-name":1, + "heatfluid": { "Exports": { "fields":["fluid.velocity","fluid.pressure","heat.temperature","fluid.pid"] + }, + "fluid": + { + }, + "heat": + { } - }, - // end::exp[] - "fluid": - { - }, - "heat": - { } } diff --git a/examples/modules/heatfluid/examples/cabin/cabin3d.cfg b/examples/modules/heatfluid/examples/cabin/cabin3d.cfg index 74c338f4..9cccb970 100755 --- a/examples/modules/heatfluid/examples/cabin/cabin3d.cfg +++ b/examples/modules/heatfluid/examples/cabin/cabin3d.cfg @@ -6,8 +6,6 @@ case.dimension=3 [heat-fluid] filename=$cfgdir/cabin3d.json -mesh.filename=$cfgdir/cabin3d.geo -gmsh.hsize=0.05#0.02 linearsystem-cst-update=false jacobian-linear-update=false diff --git a/examples/modules/heatfluid/examples/cabin/cabin3d.json b/examples/modules/heatfluid/examples/cabin/cabin3d.json index 94f5c0a4..c2d451ce 100644 --- a/examples/modules/heatfluid/examples/cabin/cabin3d.json +++ b/examples/modules/heatfluid/examples/cabin/cabin3d.json @@ -2,14 +2,31 @@ { "Name": "Fluid Mechanics", "ShortName":"Fluid", + "Metadata": + { + "version": "1", + "author": ["vincentchabannes","prudhomm","lberti","jobinhio"], + "date": "28/11/2022", + "references":[""] + }, "Models": { - "use-model-name":1, "fluid": { "equations":"Navier-Stokes" } }, + "Meshes": + { + "heatfluid": + { + "Import": + { + "filename":"$cfgdir/cabin3d.geo", + "hsize":"0.2" // 0.02 + } + } + }, "Parameters": { }, @@ -25,17 +42,14 @@ }, "BoundaryConditions": { - "velocity": + "fluid": { - "Dirichlet": + "velocity": { "inlet" : {"expr":"{0,-0.75*(0.05-x)*(x+0.05)*(0.4-z)*(z+0.4)*2500*(1-exp(-5*t)),0}:x:y:z:t"}, - "passengers" : {"expr":"{0,0}"}, - "walls" : {"expr":"{0,0}"} - } - }, - "fluid": - { + "passengers" : {"expr":"{0,0,0}"}, + "walls" : {"expr":"{0,0,0}"} + }, "outlet": { "outlet1": @@ -49,9 +63,9 @@ } }, - "temperature": + "heat": { - "Dirichlet": + "temperature": { "inlet" : {"expr":"20-5*(1-exp(-t)):t"} //"passengers" : {"expr":"20+15*(1-exp(-t)):t"} @@ -77,19 +91,19 @@ }, "PostProcess": { - "use-model-name":1, - "heat-fluid": + // "use-model-name":1, + "heatfluid": { "Exports": { "fields":["fluid.velocity","fluid.pressure","heat.temperature","fluid.pid"] + }, + "fluid": + { + }, + "heat": + { } - }, - "fluid": - { - }, - "heat": - { } } diff --git a/examples/modules/heatfluid/pages/cabin/README.adoc b/examples/modules/heatfluid/pages/cabin/README.adoc index 1b806716..3b28b627 100644 --- a/examples/modules/heatfluid/pages/cabin/README.adoc +++ b/examples/modules/heatfluid/pages/cabin/README.adoc @@ -1,9 +1,11 @@ = Aerothermal Flow in an Airplane Cabin -JB Wahl +JB Wahl , Christophe Prud'homme :description: airflow and heat transfer in an airplane cabin :keywords: feelpp, heatfluid, cfd, heat-transfer, airplane :page-vtkjs: true :uri-data: https://github.com/feelpp/toolbox/blob/master/examples/modules/heatfluid/examples +:imagesprefix: +ifdef::env-github,env-browser,env-vscode[:imagesprefix: ../../assets/images/] :page-tags: case :page-illustration: cabin/cabin3d.png :description: We simulate the airflow and heat transfer in an airplane cabin @@ -149,7 +151,7 @@ image::cabin/cabin3d.png[100%] [source,json,,indent=0] ---- -include::{examplesdir}/cabin/cabin2d.json[tags=params] +include::example$cabin/cabin2d.json[tags=params] ---- == Materials @@ -167,7 +169,7 @@ We consider a fluid in all the domain. We use a smooth approximation of the real [source,json,,indent=0] ---- -include::{examplesdir}/cabin/cabin2d.json[tags=fluid] +include::example$cabin/cabin2d.json[tags=fluid] ---- == Boundary Conditions @@ -175,7 +177,7 @@ We impose a standard no-slip condition on all the solid walls and on the passeng [source,json,,indent=0] ---- -include::{examplesdir}/cabin/cabin2d.json[tags=bc-fluid] +include::example$cabin/cabin2d.json[tags=bc-fluid] ---- The passengers heat sources are modeled by a constant heat flux (Neumann). @@ -185,14 +187,14 @@ Finally, all the other boundaries are supposed to be insulated. [source,json,,indent=0] ---- -include::{examplesdir}/cabin/cabin2d.json[tags=bc-t] +include::example$cabin/cabin2d.json[tags=bc-t] ---- == Outputs We are intersting in the visualisation of the three fields : the velocity, the pressure and the temperature of the fluid. [source,json,,indent=0] ---- -include::{examplesdir}/cabin/cabin2d.json[tags=exp] +include::example$cabin/cabin2d.json[tags=exp] ---- == Results diff --git a/examples/modules/heatfluid/pages/cabin/heatfluid-information.adoc b/examples/modules/heatfluid/pages/cabin/heatfluid-information.adoc new file mode 100644 index 00000000..b317c158 --- /dev/null +++ b/examples/modules/heatfluid/pages/cabin/heatfluid-information.adoc @@ -0,0 +1,1264 @@ +:sectnums: + += Toolbox::heatfluid - Use Case Study + +== Environment + +[cols="2"] +|=== +<|prefix +<|heat-fluid + +<|keyword +<|heatfluid + +<|root repository +<|/home/congo/feelppdb/toolboxes/heatfluid/cabin2d/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 +<|1.0 +<|materials_Fluid_rho +<|scalar +<| + +<|dynamic-viscosity +<|5.0E-4 +<|materials_Fluid_mu +<|scalar +<| + +<|specific-heat-capacity +<|1000 +<|materials_Fluid_Cp +<|scalar +<| + +<|thermal-conductivity +<|0.0145 +<|materials_Fluid_k +<|scalar +<| + +<|thermal-expansion +<|0.00366 +<|materials_Fluid_beta +<|scalar +<| +|=== + + + +== Meshes + +=== Mesh : heatfluid + +[cols="2"] +|=== +<|Discretization +<|/Mesh/heatfluid + +<|filename +<|/home/congo/feelppdb/toolboxes/heatfluid/cabin2d/np_1/heatfluid.mesh.msh +|=== + + +==== Import configuration + +[cols="2"] +|=== +<|geo-filename +<|/home/congo/Document/toolbox/examples/modules/heatfluid/examples/cabin/cabin2d.geo + +<|hsize +<|5.000000e-02 + +<|generate-partitioning +<|0 +|=== + + +==== Discretization + +[cols="2"] +|=== +<|dim +<|2 + +<|h_average +<|5.000727e-02 + +<|h_max +<|6.977512e-02 + +<|h_min +<|2.742344e-02 + +<|n_elements +<|4604 + +<|n_faces +<|7138 + +<|n_partition +<|1 + +<|n_points +<|2529 + +<|order +<|1 + +<|real_dim +<|2 + +<|shape +<|Simplex_2_1_2 +|=== + + + +==== Fields + + + + +== Algebraic Solver + +=== Backend + +[cols="2"] +|=== +<|prefix +<|heat-fluid + +<|type +<|petsc +|=== + + +=== KSP + +[cols="2"] +|=== +<|atol +<|1.000000e-50 + +<|dtol +<|1.000000e+05 + +<|maxit +<|1000 + +<|reuse-prec +<|0 + +<|rtol +<|1.000000e-08 + +<|type +<|gmres +|=== + + +=== SNES + +[cols="2"] +|=== +<|atol +<|1.000000e-50 + +<|maxit +<|50 + +<|reuse-jac +<|0 + +<|rtol +<|1.000000e-08 + +<|stol +<|1.000000e-08 +|=== + + +=== KSP in SNES + +[cols="2"] +|=== +<|maxit +<|1000 + +<|reuse-prec +<|0 + +<|rtol +<|1.000000e-05 +|=== + + +=== PC + +[cols="2"] +|=== +<|mat-solver-package +<|mumps + +<|type +<|lu +|=== + + + +== Toolbox Heat + +=== Environment + +[cols="2"] +|=== +<|prefix +<|heat-fluid.heat + +<|keyword +<|heat + +<|root repository +<|/home/congo/feelppdb/toolboxes/heatfluid/cabin2d/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] +