CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Map cyclic BC to non-cyclic (https://www.cfd-online.com/Forums/openfoam-pre-processing/158680-map-cyclic-bc-non-cyclic.html)

roadRunner September 1, 2015 04:58

Map cyclic BC to non-cyclic
 
Hello everyone,
I want to use mapFields to interpolate patch values from cyclic case to noncyclic.

Problem is that I get ldu interface error when I try to do this (like when you try to use cyclic BC on a 'noncyclic mesh'). When no cyclic BC are used, there is no problem.
OF is 2.3.x.

Is there a workaround this?

Thanks a bunch,

PS

--> FOAM FATAL ERROR:
Attempt to cast type patch to type lduInterface

From function refCast<To>(From&)
in file /home/drigler/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/typeInfo.H at line 114.

FOAM aborting

jiaojiao November 26, 2015 21:26

hello, I have the same problem when I use the mapfields ultility,do you have solverd this problem?
Quote:

Originally Posted by roadRunner (Post 561906)
Hello everyone,
I want to use mapFields to interpolate patch values from cyclic case to noncyclic.

Problem is that I get ldu interface error when I try to do this (like when you try to use cyclic BC on a 'noncyclic mesh'). When no cyclic BC are used, there is no problem.
OF is 2.3.x.

Is there a workaround this?

Thanks a bunch,

PS

--> FOAM FATAL ERROR:
Attempt to cast type patch to type lduInterface

From function refCast<To>(From&)
in file /home/drigler/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/typeInfo.H at line 114.

FOAM aborting


metalfox December 23, 2015 08:01

Convert cyclic patches to regular patches with mapFields
 
Dear foamers

I am going to calculate plume dispersion in the atmospheric boundary layer (ABL) with OpenFOAM.

The ABL structure is best calculated by LES employing cyclic boundary conditions on the east, west, etc. patches of a simple parallelepipedical mesh.

However, cyclic boundary conditions are not appropriate for the passive scalar dispersion calculation.

Therefore, I was going to use a two-step approach in which the resulting U and nuSgs fields are maped onto an identical mesh with regular patches instead of cyclics.

However,
Code:

mapFields ../ABLSolver/ -fields '(U nuSgs)'
returns:

Code:

--> FOAM FATAL ERROR:
Attempt to cast type patch to type lduInterface

    From function refCast<To>(From&)
    in file /home/openfoam/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/typeInfo.H at line 114.

with version 2.3.1, while version 3.0.1 finishes normaly, but does nothing.

How could I solve this issue?

metalfox December 28, 2015 10:21

I manage to found a solution. I simply labeled the cyclic patches as cutting patches:
Code:

cuttingPatches 
(
    west
    east
    north
    south
);

so that this boundary fields are calculated from the internal field, which is pretty much what I wanted.

hope it helps.


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