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

groovy BC

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 25, 2013, 13:31
Default groovy BC
  #1
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 6
Ahmed Khattab is on a distinguished road
Hi foamers,
i'm using groovy BC to express relation between pressure in two different patches. the problem is that expression takes average value of pressure in each patch and input it in my equation to output one value assigned to patch with groovy BC. while i want this equation to be applied for every cell not the patch as a whole and value for every cell to be evaluated from corresponding cells pressure in the two other patches (the three patches have same number of cells).

is it possible with groovy BC.
Ahmed Khattab is offline   Reply With Quote

Old   October 28, 2013, 17:48
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,862
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Ahmed Khattab View Post
Hi foamers,
i'm using groovy BC to express relation between pressure in two different patches. the problem is that expression takes average value of pressure in each patch and input it in my equation to output one value assigned to patch with groovy BC. while i want this equation to be applied for every cell not the patch as a whole and value for every cell to be evaluated from corresponding cells pressure in the two other patches (the three patches have same number of cells).

is it possible with groovy BC.
First: on a patch you have faces not cells (that may seem minor but it makes reading the questions harder because on has to guess what you mean)

Second: what is the third patch

Something like this is possible if the two patches are "mapped" patches. Have a look at the examples there are two mapping-examples in Examples/test

For non-mapped-patches this is not supported and I have explained multiple times on the forum why not
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 5, 2013, 12:09
Default
  #3
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 6
Ahmed Khattab is on a distinguished road
Hi,

i tried mapFields and i got this error message

Code:
--> FOAM FATAL IO ERROR: 
cannot find file

file: /home/khattab/OpenFOAM/khattab-2.1.0/run/tutorials/heatTransfer/chtMultiRegionSimpleFoam/masterCase4/processor0/system/controlDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
i don't know what i must do?

another thing. i want to take two fields only from source case (U,P) which not only fields in source case or target case.

thanks in advance
Ahmed Khattab is offline   Reply With Quote

Old   November 7, 2013, 07:08
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,862
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Ahmed Khattab View Post
Hi,

i tried mapFields and i got this error message

Code:
--> FOAM FATAL IO ERROR: 
cannot find file

file: /home/khattab/OpenFOAM/khattab-2.1.0/run/tutorials/heatTransfer/chtMultiRegionSimpleFoam/masterCase4/processor0/system/controlDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
i don't know what i must do?

another thing. i want to take two fields only from source case (U,P) which not only fields in source case or target case.

thanks in advance
How is that related to the topic of this thread? Does it only happen if you use a groovyBC or is it a general problem with mapFields in parallel and multi-region cases (in that case I suggest you start a new thread)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 7, 2013, 08:51
Default
  #5
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 6
Ahmed Khattab is on a distinguished road
Hi,

thanks for your reply, i already started new one.
http://www.cfd-online.com/Forums/ope...i-regions.html

but this new thread is with another problem related to multiregions.
for my problem with multiprocessor i didn't find solution but i used one processor to overcome it.

thanks in advance.
Ahmed Khattab is offline   Reply With Quote

Reply

Tags
cell, groovy

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
Groovy BC - time dependend Inlet Tobi OpenFOAM Pre-Processing 16 October 20, 2013 17:54
zerogradient in groovy immortality OpenFOAM Pre-Processing 7 October 18, 2013 08:11
groovy boundary condition for pressure Ahmed Khattab OpenFOAM 3 October 15, 2013 06:30
Setting BC for a passive scalar (groovy vs fvOptions) Tobi OpenFOAM Pre-Processing 0 May 23, 2013 15:53
using groovy boundry condition in multiphase problom javad814 OpenFOAM 1 November 30, 2011 17:29


All times are GMT -4. The time now is 21:34.