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

Multiple patch types for different mesh regions

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 10, 2017, 05:34
Post Multiple patch types for different mesh regions
  #1
New Member
 
Marc
Join Date: May 2017
Posts: 17
Rep Power: 2
Dreoasteh is on a distinguished road
Hi,

I'm working on a conjugate heat transfer multi-region case, the mesh can be seen in the first attachment.

After snappyHexMesh, the mesh is divided into a solid and a fluid region (seen in the next two attachments).

The walls (i.e. all boundaries excluding inlet and outlet) in blockMesh from which the mesh is built from are set as symmetryPlane.

My aim is to have the fluid walls as "symmetryPlane" but the solid walls as "wall" because I want to set a fix temperature to them.

I tried editing constant/solid/polyMesh/boundary and manually changing the entries "type" and "inGroups" of the desired patches from "symmetryPlane" to "wall" but during a decomposePar command I got this error:

Code:
--> FOAM FATAL ERROR: 
Attempt to cast type wall to type symmetryPlane

    From function To& Foam::refCast(From&) [with To = const Foam::symmetryPlaneFvPatch; From = const Foam::fvPatch]
    in file /scratch/marrs/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude/typeInfo.H at line 114.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::symmetryPlaneFvPatch const& Foam::refCast<Foam::symmetryPlaneFvPatch const, Foam::fvPatch const>(Foam::fvPatch const&) at ??:?
#3  Foam::symmetryPlaneFvPatchField<double>::symmetryPlaneFvPatchField(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#4  Foam::fvPatchField<double>::adddictionaryConstructorToTable<Foam::symmetryPlaneFvPatchField<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#5  Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/scratch/marrs/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/decomposePar"
#6  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary::readField(Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/scratch/marrs/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/decomposePar"
#7  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields(Foam::dictionary const&) in "/scratch/marrs/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/decomposePar"
#8  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields() in "/scratch/marrs/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/decomposePar"
#9  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) in "/scratch/marrs/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/decomposePar"
#10  ? in "/scratch/marrs/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/decomposePar"
#11  ? in "/scratch/marrs/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/decomposePar"
#12  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#13  ? in "/scratch/marrs/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/decomposePar"
If anyone can point me in the right direction for changing patch types in different regions (in case this can actually be done, which I'm not sure of) I'd be very grateful.

Edit: I just tried a normal (i.e. non-parallel) chtMultiRegionSimpleFoam run and it worked. However, I do need to run my cases in parallel, so how could I solve the decomposePar error?
Dreoasteh is offline   Reply With Quote

Reply

Tags
chtmultiregionsimpefoam, multi region, patch type, symmetry

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boundary conditions for dynamic mesh interface patch between two mesh regions Virag OpenFOAM Running, Solving & CFD 8 May 31, 2016 18:33
Problems with ANSYS mesh conversion tdog OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 1 March 31, 2016 17:36
Problem with cyclic boundaries in Openfoam 1.5 fs82 OpenFOAM 36 January 7, 2015 01:31
Cyclic Boundary Condition Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 36 July 2, 2012 12:23
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19


All times are GMT -4. The time now is 00:52.