|
[Sponsors] |
[swak4Foam] groovyBC variable parallel reduce? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 5, 2013, 10:19 |
groovyBC variable parallel reduce?
|
#1 |
Member
Join Date: Nov 2012
Posts: 58
Rep Power: 13 |
Hello there!
I would like to impose a boundary condition based on the amount of mass which is inside my domain, as follows Code:
type groovyBC; ... variables ( ... "Mass{cellSet'allCells}=sum(rho*vol());" ... ); valueExpression "bananas*Mass"; |
|
April 5, 2013, 13:52 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Seriously: functions like sum, max, min AUTOMATICALLY reduce over all processors (if you find instances where this isn't the case: report a bug). In my mind this is the only behaviour that makes sense for this application
__________________
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 |
||
April 8, 2013, 03:36 |
|
#3 |
Member
Join Date: Nov 2012
Posts: 58
Rep Power: 13 |
Great, thanks for the answer :-)
I guess I reached a conclusion too fast! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running parallel case after parallel meshing with snappyHexMesh? | Adam Persson | OpenFOAM Running, Solving & CFD | 0 | August 31, 2015 22:04 |
Can not run OpenFOAM in parallel in clusters, help! | ripperjack | OpenFOAM Running, Solving & CFD | 5 | May 6, 2014 15:25 |
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel | JR22 | OpenFOAM Running, Solving & CFD | 2 | April 19, 2013 16:49 |
error in COMSOL:'ERROR:6164 Duplicate Variable' | bhushas | COMSOL | 1 | May 30, 2008 04:35 |
Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22 | Amitava Majumdar | Main CFD Forum | 0 | January 5, 1999 12:00 |