|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Aug 2014
Location: Hamburg, Germany
Posts: 5
Rep Power: 10 ![]() |
Dear Foamers,
I've got a problem with coding a parallel calculation of the flow-rate which is to be evaluated on the run (not by integratePatchField). My overall purpose is the following: I want the flow-rate to influence the inlet boundary conditions of an internal flow. So far I've actually managed to evaluate the flow-rate, but it only works if I'm performing parallel calculations on my local machine or on one single node of a cluster. However if I try to run the very same calculation on a cluster distributed over several nodes, it always yields a zero flow-rate. So obviously the problem must have something to do with parallelisation or with mpi ... Finally here is the code, I added to the original icoFoam solver: // Declaration and Initialisation of Variables word outletPatchName = "OUTLET"; // search for label of the outlet patch by the name within the boundary dictionaryI'd be glad for any helpful comments. Waldemar |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 16 ![]() |
Hi Waldemar,
Try using Code:
gSum(...) Code:
sum(...) I hope that helps! Cheers, Kyle |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: Aug 2014
Location: Hamburg, Germany
Posts: 5
Rep Power: 10 ![]() |
Hi Kyle,
it works fine. Thank you very much! |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 16 ![]() |
Excellent! Good to hear.
|
|
![]() |
![]() |
![]() |
Tags |
clusters, flow-rate, programming |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gate valve flow simulations... | nikesh | FloEFD, FloWorks & FloTHERM | 5 | January 28, 2014 01:31 |
How to define a fixed velocity for a given mass flow rate on inlet | mqasimali | FLUENT | 2 | April 12, 2013 17:24 |
Mass flow rate boundary condition for continuity equation for oscillating flow | p07ip705 | Main CFD Forum | 0 | February 28, 2013 01:33 |
target flow rate: varying results | Ryan | FLUENT | 3 | January 9, 2008 13:54 |
fluid flow fundas | ram | Main CFD Forum | 5 | June 17, 2000 21:31 |