CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Boundary condition in chtMultiRegionFoam (https://www.cfd-online.com/Forums/openfoam/99559-boundary-condition-chtmultiregionfoam.html)

samiam1000 April 6, 2012 05:44

Boundary condition in chtMultiRegionFoam
 
Dear all,

I am trying to simulate a case in OF, using the chtMultiRegionFoam solver.

I have `a slice' of the whole domain and on the lateral faces I want to impose a symmetry boundary condition.

I get this error

Code:

lab@lab-laptop:~/Documenti/cases_OF/OF_case11bis_multiregion$ splitMeshRegions -cellZones -overwrite
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  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  : splitMeshRegions -cellZones -overwrite
Date  : Apr 06 2012
Time  : 11:27:42
Host  : "lab-laptop"
PID    : 4690
Case  : /home/lab/Documenti/cases_OF/OF_case11bis_multiregion
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 mesh for time = 0

Creating single patch per inter-region interface.

Trying to match regions to existing cell zones.


Number of regions:3

Writing region per cell file (for manual decomposition) to "/home/lab/Documenti/cases_OF/OF_case11bis_multiregion/constant/cellToRegion"

Writing region per cell as volScalarField to "/home/lab/Documenti/cases_OF/OF_case11bis_multiregion/0/cellToRegion"

Region        Cells
------        -----
0        24900
1        81885
2        57615

Region        Zone        Name
------        ----        ----
0        -1        domain0
1        -1        domain1
2        -1        domain2

Sizes of interfaces between regions:

Interface        Region        Region        Faces
---------        ------        ------        -----

Reading volScalarField Ypmma


--> FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
    patch type symmetryPlane and patchField type calculated

file: /home/lab/Documenti/cases_OF/OF_case11bis_multiregion/0/Ypmma::boundaryField::.* from line 25 to line 26.

    From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
    in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 164.

FOAM exiting

but I can't understand what's wrong.

Could you help, please?

Thanks a lot,

Samuele

wyldckat April 6, 2012 17:25

Greetings Samuele,

You're opening a lot of threads about chtMultiRegionFoam... although it might look easier for you to ask questions this way, it makes a lot harder for people to answer and for others to look for the same answers...

Now, let me read again your question on this thread... Ah, right. The problem here is this:
Code:

boundaryField::.*
The ".*" is a regular expression that is used for selecting any and all boundary fields, independently of their name. Search online for "sed tutorial" or "regular expressions tutorial" for more information on this. The OpenFOAM User Guide probably also mentions how to make use of regular expressions.

Anyway, since you're using a regular expression, means that the definitions made within that block will apply to all boundary fields. This cannot be done in some cases, like what happened in your case.

Now on to another thread :rolleyes: ...

Best regards,
Bruno

samiam1000 April 10, 2012 04:43

Dear Bruno,

once again, sorry for the `spam'.. I thought it was better to open a new thread for each question.

So, let's move to this thread. Do you agree?

Thanks,

Samuele.


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