Difference between revisions of "Getting started with chtMultiRegionSimpleFoam - planeWall2D"

From OpenFOAMWiki
(Dummy page for now... I'll fill it in a few minutes...)
 
(better save before something bad happens...)
Line 1: Line 1:
{{version2.1}}
+
{{VersionInfo}}{{version2.1}}
 +
__FORCETOC__
  
 
= Introduction =
 
= Introduction =
TODO...
+
This page is meant to help the user get started with the {{tt|chtMultiRegionFoam}} and {{tt|chtMultiRegionSimpleFoam}} solvers. This page is no where near complete, so feel free to add examples based on this {{tt|planeWall2D}} example case and write instructions and/or tips on how to use these solvers.
 +
 
 +
This page began as a result from the discussion help here: [http://www.cfd-online.com/Forums/openfoam/106731-chtmultiregionfoam-unequal-temperature-coupled-patches.html chtMultiRegionFoam--unequal temperature at coupled patches] - there you might find some very more precious ''hints'' on what you can do with these solvers!
 +
 
 +
 
 +
= {{tt|planeWall2D}} - Case description =
 +
This is basically the example shown in the book ''Fundamentals of Heat and Mass Transfer'' by Frank P. Incropera ''et. al'', chapter 3, section 3.1 "The Plane Wall".
 +
 
 +
(''It's missing a picture, because we can't use the one from the book and I didn't have the time to draw one...'' -- [[User:Wyldckat|Wyldckat]] ([[User talk:Wyldckat|talk]]) 18:12, 23 September 2012 (CEST))
 +
 
 +
Basically, it's an infinite solid and uniform wall with generic fluids flowing on both sides of the wall. It's one of the most basic 1D examples of heat transfer between two fluids and a solid.
 +
 
 +
The attached case [[Media:PlaneWall2D.tar.gz|planeWall2D.tar.gz]] provides a ready to be used case for OpenFOAM {{version2.1}} and is defined as follows:
 +
* It's based on the tutorial {{tt|heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater}}, but ''stripped down'' to only 3 regions, one solid and two fluids.
 +
* The mesh of this example case "planeWall2D" is based on the traditional OpenFOAM {{tt|cavity}} case, but with 1m x 1m.
 +
* The 3 regions are defined as follows:
 +
** {{tt|topAir}} - 0.6 to 1m - where the air is cold at 300K and flows from the left to the right at 0.1m/s. The top patch is a symmetry plane.
 +
** {{tt|wall}} - 0.4 to 0.6m - where a solid wall is placed, initiated at 300K and has a high conduction factor.
 +
** {{tt|bottomAir}} - 0 to 0.4m - where the air is hot at 500K and flows from the left to the right at 0.1m/s. The bottom patch is a symmetry plane.
 +
 
 +
 
 +
== Get and run the case ==
 +
# Download the attached file [[Media:PlaneWall2D.tar.gz|planeWall2D.tar.gz]] and unpack it by running: <bash>tar xzf planeWall2D.tar.gz</bash>
 +
# Then go into the folder and run it: <bash>./Allrun</bash>
 +
# For reseting the case, run: <bash>./Allclean</bash>
 +
 
 +
== Post-Processing ==
 +
When the script {{tt|Allrun}} finishes executing, you'll have 3 files:
 +
<bash>TODO</bash>

Revision as of 16:12, 23 September 2012

Valid versions: OF Version 21.png


1 Introduction

This page is meant to help the user get started with the chtMultiRegionFoam and chtMultiRegionSimpleFoam solvers. This page is no where near complete, so feel free to add examples based on this planeWall2D example case and write instructions and/or tips on how to use these solvers.

This page began as a result from the discussion help here: chtMultiRegionFoam--unequal temperature at coupled patches - there you might find some very more precious hints on what you can do with these solvers!


2 planeWall2D - Case description

This is basically the example shown in the book Fundamentals of Heat and Mass Transfer by Frank P. Incropera et. al, chapter 3, section 3.1 "The Plane Wall".

(It's missing a picture, because we can't use the one from the book and I didn't have the time to draw one... -- Wyldckat (talk) 18:12, 23 September 2012 (CEST))

Basically, it's an infinite solid and uniform wall with generic fluids flowing on both sides of the wall. It's one of the most basic 1D examples of heat transfer between two fluids and a solid.

The attached case planeWall2D.tar.gz provides a ready to be used case for OpenFOAM OF Version 21.png and is defined as follows:

  • It's based on the tutorial heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater, but stripped down to only 3 regions, one solid and two fluids.
  • The mesh of this example case "planeWall2D" is based on the traditional OpenFOAM cavity case, but with 1m x 1m.
  • The 3 regions are defined as follows:
    • topAir - 0.6 to 1m - where the air is cold at 300K and flows from the left to the right at 0.1m/s. The top patch is a symmetry plane.
    • wall - 0.4 to 0.6m - where a solid wall is placed, initiated at 300K and has a high conduction factor.
    • bottomAir - 0 to 0.4m - where the air is hot at 500K and flows from the left to the right at 0.1m/s. The bottom patch is a symmetry plane.


2.1 Get and run the case

  1. Download the attached file planeWall2D.tar.gz and unpack it by running:
    tar xzf planeWall2D.tar.gz
  2. Then go into the folder and run it:
    ./Allrun
  3. For reseting the case, run:
    ./Allclean

2.2 Post-Processing

When the script Allrun finishes executing, you'll have 3 files:

TODO