CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   chtMultiRegionFoam......Help please.... (http://www.cfd-online.com/Forums/openfoam/74478-chtmultiregionfoam-help-please.html)

devesh.baghel April 1, 2010 06:54

chtMultiRegionFoam......Help please....
 
Hi foamers,

I am trying to simulate Heat transfer problem in OF 1.6 with "chtMultiRegionFoam".
I gone through the tutorial "multiRegionHeater" inside of "chtMultiRegionFoam".
I did case set up & run it, as it is shown in tutorial.
While post-processing in ParaFoam "Volume Fields" has nothing to show. It doesn't have any single property/parameter to do post-processing. :(

Any suggestion / guidelines to resolve this problem will be appreciable.

Thanks alot.......

kawuppdich April 1, 2010 08:05

Hi,
you have to load each region in paraview. open the .OpenFOAM files with paraview.

greetings

phsieh2005 April 1, 2010 08:27

Hi,

in the multiRegionheater folder, do "./Allrun"

When the run completes, type "paraview". Then click "open". then, you can select the region(s) you want to visualize, for example

multiRegionheater{bottomAir}.OpenFOAM

After this, you can visualize whatever parameters you are interested in, such as T, p, U..

While in the same session, you can open more regions.

Pei

rahulrp April 1, 2010 15:11

hi devesh,
This is Rahul here. I am new in OpenFoam. I am using Ubuntu9.04, OpenFOAM-1.6. I am trying to go through the heat transfer tutorial ->chtMultiRegionFoam. I am getting following message in terminal.

rahul@rahul-desktop:~/OpenFOAM_compile/OpenFOAM-1.6/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater$ chtMultiRegionFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-53b7f692aa41
Exec : chtMultiRegionFoam
Date : Apr 01 2010
Time : 11:24:17
Host : rahul-desktop
PID : 28223
Case : /home/rahul/OpenFOAM_compile/OpenFOAM-1.6/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create fluid mesh for region bottomAir for time = 0.001

Create fluid mesh for region topAir for time = 0.001

Create solid mesh for region heater for time = 0.001

Create solid mesh for region leftSolid for time = 0.001

Create solid mesh for region rightSolid for time = 0.001

*** Reading fluid mesh thermophysical properties for region bottomAir

Adding to thermoFluid

Selecting thermodynamics package hPsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>
#0 Foam::error::printStack(Foam::Ostream&) in "/home/rahul/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigFpe::sigFpeHandler(int) in "/home/rahul/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted:
#3 Foam::hPsiThermo<Foam::pureMixture<Foam::constTran sport<Foam::specieThermo<Foam::hConstThermo<Foam:: perfectGas> > > > >::calculate() in "/home/rahul/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libbasicThermophysicalModels.so"
#4 Foam::hPsiThermo<Foam::pureMixture<Foam::constTran sport<Foam::specieThermo<Foam::hConstThermo<Foam:: perfectGas> > > > >::hPsiThermo(Foam::fvMesh const&) in "/home/rahul/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libbasicThermophysicalModels.so"
#5 Foam::basicPsiThermo::addfvMeshConstructorToTable< Foam::hPsiThermo<Foam::pureMixture<Foam::constTran sport<Foam::specieThermo<Foam::hConstThermo<Foam:: perfectGas> > > > > >::New(Foam::fvMesh const&) in "/home/rahul/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libbasicThermophysicalModels.so"
#6 Foam::basicPsiThermo::New(Foam::fvMesh const&) in "/home/rahul/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libbasicThermophysicalModels.so"
#7 main in "/home/rahul/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/chtMultiRegionFoam"
#8 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#9 _start at /build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122
Floating point exception

I am not getting what exactly it is. So pls help m in regard.
Thank u..!!

wyldckat April 2, 2010 10:34

Greetings Rahul,

Uhm, I guess you didn't read properly what Pei said in post #3:
Quote:

in the multiRegionheater folder, do "./Allrun"
In other words, instead of executing chtMultiRegionFoam directly, you should have executed:
Code:

./Allrun
Best regards,
Bruno

Javed April 5, 2010 05:26

Hi Bruno..
can u plz help me to sort out the pbm in chtMultiRegionFoam..
After running Allrun I m getting following error..

javed@javed:~/OpenFOAM-RUN/OpenFOAM-1.6/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater$ ./Allrun
blockMesh already run on /home/javed/OpenFOAM-RUN/OpenFOAM-1.6/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater: remove log file to run
setSet already run on /home/javed/OpenFOAM-RUN/OpenFOAM-1.6/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater: remove log file to run
setsToZones already run on /home/javed/OpenFOAM-RUN/OpenFOAM-1.6/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater: remove log file to run
splitMeshRegions already run on /home/javed/OpenFOAM-RUN/OpenFOAM-1.6/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater: remove log file to run
./Allrun: 19: Syntax error: Bad fd number


Thanks
Javed

wyldckat April 5, 2010 16:54

Greetings Javed,

OK, run the following lines:
Code:

foamCleanTutorials
rm log.*
rm *.OpenFOAM
bash Allrun

The first line issues the usual clean up made for tutorials, but it won't erase all of the unneeded files. The second and third line remove the logs and the files to open in paraFoam/paraview.
Now, the forth line forces bash to be used to execute the Allrun script, instead of sh.

Nonetheless, If you still want to use "./Allrun", then edit the Allrun file, and change the first line:
Code:

#!/bin/sh
to
Code:

#!/bin/bash
I hope that solves your problem :)


Edit: By the way, in case you want to run in single core instead of multi-core, go near the end of the Allrun file and change:
Code:

#-- Run on single processor
#runApplication chtMultiRegionFoam

# Decompose
for i in bottomAir topAir heater leftSolid rightSolid
do
  decomposePar -region $i >& log.decomposePar.$i
done

# Run
runParallel chtMultiRegionFoam 4

# Reconstruct
for i in bottomAir topAir heater leftSolid rightSolid
do
  reconstructPar -region $i >& log.reconstructPar.$i
done

to this:
Code:

#-- Run on single processor
runApplication chtMultiRegionFoam

# Decompose
#for i in bottomAir topAir heater leftSolid rightSolid
#do
#  decomposePar -region $i >& log.decomposePar.$i
#done

# Run
#runParallel chtMultiRegionFoam 4

# Reconstruct
#for i in bottomAir topAir heater leftSolid rightSolid
#do
#  reconstructPar -region $i >& log.reconstructPar.$i
#done

As you can see, the part that I commented out (added a # to the beginning) is required for most scenarios of parallel processing in OpenFOAM. The file "system/decomposeParDict" defines how the volume is divided to each core.

Best regards,
Bruno

Javed April 7, 2010 14:55

Hi Bruno..
Thanks for the detailed reply...need ur help again..
I have added temperature in the icoFoam solver but dont know how to run the code..

I m getting the follwoing error while running on icoFoam directoryjaved@javed:~/OpenFOAM-RUN/OpenFOAM-1.6/tutorials/incompressible/icoFoam/mycavity$ myicoFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-53b7f692aa41
Exec : myicoFoam
Date : Apr 08 2010
Time : 00:22:45
Host : javed
PID : 20830
Case : /home/javed/OpenFOAM-RUN/OpenFOAM-1.6/tutorials/incompressible/icoFoam/mycavity
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading transportProperties

Reading field p

Reading field U

Reading field T

Reading/calculating face flux field phi


Starting time loop

Time = 0.005

Courant Number mean: 0 max: 0
DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 2.96338e-06, No Iterations 8
DILUPBiCG: Solving for Uy, Initial residual = 0, Final residual = 0, No Iterations 0
DICPCG: Solving for p, Initial residual = 1, Final residual = 7.55402e-07, No Iterations 35
time step continuity errors : sum local = 5.03809e-09, global = 1.94884e-19, cumulative = 1.94884e-19
DICPCG: Solving for p, Initial residual = 0.523591, Final residual = 9.72352e-07, No Iterations 34
time step continuity errors : sum local = 1.07766e-08, global = 4.49324e-19, cumulative = 6.44208e-19


Unknown asymmetric matrix preconditioner DIC

Valid asymmetric matrix preconditioners :

4
(
none
GAMG
diagonal
DILU
)


file:

From function lduMatrix::preconditioner::New(const solver&, const dictionary&)
in file matrices/lduMatrix/lduMatrix/lduMatrixPreconditioner.C at line 125.

FOAM exiting


I m referring http://openfoamwiki.net/index.php/How_to_add_temperature_to_icoFoam tutorial.

Plz help...Thanks

wyldckat April 7, 2010 15:17

Greetings Javed,

Unfortunately, I have nearly no experience in adding new features to OpenFOAM solvers. Nonetheless, this seems to be the main issue:
Code:

Unknown asymmetric matrix preconditioner DIC

Valid asymmetric matrix preconditioners :

4
(
none
GAMG
diagonal
DILU
)

Check in the system/* files that you have in the case folder and search for DIC and try changing it to one of the 4 listed. At least, that's what I would do!

Best regards,
Bruno


All times are GMT -4. The time now is 23:32.