CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

chtMultiRegionFoam......Help please....

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2010, 07:54
Default chtMultiRegionFoam......Help please....
  #1
Member
 
Devesh Baghel
Join Date: Mar 2009
Posts: 84
Rep Power: 17
devesh.baghel is on a distinguished road
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.......
devesh.baghel is offline   Reply With Quote

Old   April 1, 2010, 09:05
Default
  #2
New Member
 
J H
Join Date: Mar 2009
Location: Germany
Posts: 20
Rep Power: 17
kawuppdich is on a distinguished road
Hi,
you have to load each region in paraview. open the .OpenFOAM files with paraview.

greetings
kawuppdich is offline   Reply With Quote

Old   April 1, 2010, 09:27
Default
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   April 1, 2010, 16:11
Default
  #4
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 16
rahulrp is on a distinguished road
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:rintStack(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:ureMixture<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:ureMixture<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:ureMixture<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..!!
rahulrp is offline   Reply With Quote

Old   April 2, 2010, 11:34
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
wyldckat is offline   Reply With Quote

Old   April 5, 2010, 06:26
Default
  #6
Member
 
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16
Javed is on a distinguished road
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
Javed is offline   Reply With Quote

Old   April 5, 2010, 17:54
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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

Last edited by wyldckat; April 5, 2010 at 18:00. Reason: added a tip...
wyldckat is offline   Reply With Quote

Old   April 7, 2010, 15:55
Default
  #8
Member
 
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16
Javed is on a distinguished road
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:reconditioner::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
Javed is offline   Reply With Quote

Old   April 7, 2010, 16:17
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with running chtMultiRegionFoam after using setSet utility Victor OpenFOAM 12 March 24, 2023 01:01
chtMultiRegionFoam with Boussinesq approximation? phsieh2005 OpenFOAM Running, Solving & CFD 1 June 23, 2015 20:07
How to add 3rd region to chtMultiRegionFoam benk OpenFOAM 1 April 3, 2010 18:22
chtMultiRegionFoam near Wall Treatment/ Wallfunctions stawrogin OpenFOAM 0 March 18, 2010 15:36
chtMultiregionFoam msarkar OpenFOAM 21 February 11, 2010 00:12


All times are GMT -4. The time now is 11:37.