CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   chtMultiRegionSimpleFoam (http://www.cfd-online.com/Forums/openfoam-solving/119493-chtmultiregionsimplefoam.html)

samiam1000 June 18, 2013 11:18

chtMultiRegionSimpleFoam
 
Dear All,

I am trying to set a multiregion simulation. It is a steady solution, hence I am using chtMultiRegionSimpleFoam.

The point is that I get this error:
Code:

lab@lab-laptop:~/Documenti/Ethics/FRISBEE/CFD/testVerticalTN_PCM/PCM/steady$ chtMultiRegionSimpleFoam
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.1.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.1.0-0bc225064152
Exec  : chtMultiRegionSimpleFoam
Date  : Jun 18 2013
Time  : 17:13:29
Host  : "lab-laptop"
PID    : 5389
Case  : /home/lab/Documenti/Ethics/FRISBEE/CFD/testVerticalTN_PCM/PCM/steady
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Create fluid mesh for region fluid for time = 0

Create solid mesh for region pcm_1 for time = 0

Create solid mesh for region pcm_2 for time = 0

Create solid mesh for region pcm_3 for time = 0

*** Reading fluid mesh thermophysical properties for region fluid

    Adding to thermoFluid

Selecting thermodynamics package hRhoThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>
    Adding to rhoFluid

    Adding to kappaFluid

    Adding to UFluid

    Adding to phiFluid

    Adding to gFluid

    Adding to turbulence

Selecting turbulence model type RASModel
Selecting RAS turbulence model laminar
    Adding to ghFluid

    Adding to ghfFluid



--> FOAM FATAL ERROR:
LHS and RHS of - have different dimensions
    dimensions : [0 2 -2 0 0 0 0] - [1 -1 -2 0 0 0 0]


    From function operator-(const dimensionSet&, const dimensionSet&)
    in file dimensionSet/dimensionSet.C at line 535.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::error::abort() in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  Foam::operator-(Foam::dimensionSet const&, Foam::dimensionSet const&) in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#3  Foam::tmp<Foam::GeometricField<Foam::typeOfSum<double, double>::type, Foam::fvPatchField, Foam::volMesh> > Foam::operator-<double, double, Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#4 
 in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
#5  __libc_start_main in "/lib/libc.so.6"
#6 
 in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/chtMultiRegionSimpleFoam"
Aborted
lab@lab-laptop:~/Documenti/Ethics/FRISBEE/CFD/testVerticalTN_PCM/PCM/steady$

Where is the error, to you? It seems that I am setting wrong units of measurement to the BC. But where? Could you help?

Thanks,
Samuele

ZKW July 9, 2013 02:47

Hi.

seems you have used the wrong dimensions for Pressure,

check 0/Fluid/p & 0/Fluid/p_rgh

p : dimensions [1 -1 -2 0 0 0 0];
p_rgh : dimensions [1 -1 -2 0 0 0 0];

as per the chtMultiRegionSimpleFoam tutorial.
openfoam211/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0

Regards
Unni


All times are GMT -4. The time now is 21:09.