CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Multiple patch types for different mesh regions (https://www.cfd-online.com/Forums/openfoam/194078-multiple-patch-types-different-mesh-regions.html)

Dreoasteh October 10, 2017 05:34

Multiple patch types for different mesh regions
 
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?


All times are GMT -4. The time now is 18:15.