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

Boundary condition in chtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2012, 05:44
Default Boundary condition in chtMultiRegionFoam
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
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
samiam1000 is offline   Reply With Quote

Old   April 6, 2012, 17:25
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 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 ...

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 10, 2012, 04:43
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
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.
samiam1000 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
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Can anyone give me some hint on how to make traction free boundary condition? poplar OpenFOAM 3 January 14, 2015 02:37
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 05:05
Setting outlet Pressure boundary condition using CAFFA code Mukund Pondkule Main CFD Forum 0 March 16, 2011 03:23
How to set boundary condition in Fluent for the fo Peiyong FLUENT 1 November 10, 2006 11:44


All times are GMT -4. The time now is 06:04.