|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
|
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. |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,226
Rep Power: 50 ![]() ![]() |
Quote:
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 |
||
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
|
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 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 |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,226
Rep Power: 50 ![]() ![]() |
Quote:
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
|
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. |
|
![]() |
![]() |
![]() |
Tags |
cell, groovy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Groovy BC - time dependend Inlet | Tobi | OpenFOAM Community Contributions | 20 | August 27, 2020 09:22 |
[swak4Foam] How to use groovy Boundary conditions | Zhiheng Wang | OpenFOAM Community Contributions | 8 | November 6, 2019 09:28 |
[swak4Foam] groovy boundary condition for pressure | Ahmed Khattab | OpenFOAM Community Contributions | 4 | November 14, 2015 20:18 |
[swak4Foam] groovy BC - which value is used | ThorgrimmCFD | OpenFOAM Community Contributions | 2 | May 7, 2015 04:06 |
[swak4Foam] using groovy boundry condition in multiphase problom | javad814 | OpenFOAM Community Contributions | 1 | November 30, 2011 16:29 |