|
[Sponsors] | |||||
ChannelOodles Want to prescribe mass flux instead of mean velocity |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 18 ![]() |
Hi Tammo,
I am having exactly the same problem with prescribing a mass flux instead of Ubar. The mas flux through cyclic patches is obviously zero. Have you found a way to compute the mass flux through your domain? Regards, Markus |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 38 ![]() ![]() |
Hi
I have done something similar once upon a time. As you are having the flowDirection, I believe something like this would give you the flux: scalar flux = sum(pos(flowDirection & mesh.boundary()[patchID].Sf()) * phi.boundaryField()[patchID]) where patchID is referring to the cyclic patch in question. As the face-normal is pointing in opposite directions on the two cyclic patches the inner product will yield opposite sign, thus the "pos" part of the entry filters all opposite phis out of the summation, and voila Have fun, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
|
|
|
|
|
|
|
#3 |
|
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 18 ![]() |
Brilliant, it does exactly what I need.
Thank you very much! |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Questions about swirl velocity in mass-flux bc | Ray | FLUENT | 1 | May 28, 2012 06:39 |
| ChannelOodles Correcting driving force for a constant mass flow rate | maka | OpenFOAM Running, Solving & CFD | 3 | September 21, 2005 06:18 |
| Mass Flux vs Velocity Inlet | Sandra | FLUENT | 5 | July 20, 2005 14:09 |
| Prescribe pulsatile velocity boundary condition | Terri Novotny | FLUENT | 0 | December 3, 2004 10:35 |
| How are the mass flux and mass flow rate defined? | Miles | Siemens | 2 | November 7, 2002 09:45 |