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

Map cyclic BC to non-cyclic

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2015, 04:58
Default Map cyclic BC to non-cyclic
  #1
Member
 
Join Date: Apr 2015
Location: EU
Posts: 38
Rep Power: 11
roadRunner is on a distinguished road
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
__________________
beep-beep
roadRunner is offline   Reply With Quote

Old   November 26, 2015, 21:26
Default
  #2
Member
 
Fengjiao Bian
Join Date: Nov 2013
Location: beijing
Posts: 30
Rep Power: 12
jiaojiao is on a distinguished road
hello, I have the same problem when I use the mapfields ultility,do you have solverd this problem?
Quote:
Originally Posted by roadRunner View Post
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 is offline   Reply With Quote

Old   December 23, 2015, 08:01
Default Convert cyclic patches to regular patches with mapFields
  #3
New Member
 
Join Date: Dec 2015
Posts: 24
Rep Power: 10
metalfox is on a distinguished road
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 is offline   Reply With Quote

Old   December 28, 2015, 10:21
Default
  #4
New Member
 
Join Date: Dec 2015
Posts: 24
Rep Power: 10
metalfox is on a distinguished road
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.

Last edited by wyldckat; December 28, 2015 at 10:30. Reason: merged two posts posted on the same day and moved related posts to the same thread and removed the redundancy links to each thread
metalfox 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
direct map vs cyclic nimasam OpenFOAM 2 February 15, 2017 11:58
Possible createPatch/createBaffles bug? simpomann OpenFOAM Bugs 2 July 15, 2014 07:07
Error during initialization of "rhoSimpleFoam" kornickel OpenFOAM Running, Solving & CFD 8 September 17, 2013 05:37
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 17:08
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 01:59.