|
[Sponsors] |
Requesting case sugestion for imposing a velocity source term, that simulates a pump |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 18, 2014, 11:02 |
Requesting case sugestion for imposing a velocity source term, that simulates a pump
|
#1 |
New Member
Lala Sasa
Join Date: Jun 2014
Posts: 16
Rep Power: 12 |
Hi guys!
I need to impose a velocity source term, that simulates a pump, in a closed loop. The fluid is turbulent and incompressible, interested both in stationary and transitory condition. Could someone indicate me a similar case study so I can extrapolate how to impose such condition? THX in advance. |
|
June 18, 2014, 12:34 |
|
#2 | |
Senior Member
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22 |
Quote:
If you need a time-varying source, there is - to my knowledge - none available. Your options would be to write a new fvOptions source for a time varying velocity or use swak4Foam which gives the ability to code in generic source term into your solver and one specifies the form of the source term in a dictionary. The nice thing about the swak4Foam approach is once the generic source term is hooked into the solver, the mathematical form is specified through the dictionary. Therefore, if one wants to modify either the form or the parameters, no compilation is necessary. So one can easily experiment with the source term and the parameters. In fact, if one was so inclined, a parametric study of the source would be straightforward with a script. |
||
June 18, 2014, 14:10 |
|
#3 |
New Member
Lala Sasa
Join Date: Jun 2014
Posts: 16
Rep Power: 12 |
Thank you very much for the reply. The fvOption will work for now.
Eventually I will need to use a variable pump condition but for the time being, and benchamrking porpoises a static one will do just fine. Again THX allot |
|
June 18, 2014, 14:49 |
|
#4 |
New Member
Lala Sasa
Join Date: Jun 2014
Posts: 16
Rep Power: 12 |
Just one little more. I can't seem able to "activate" the option...
One could write, from the header suggestion: pressureGradientExplicitSourceCoeffs { fieldNames (U); // name of velocity field Ubar (10.0 0 0); // desired average velocity gradPini gradPini [0 2 -2 0 0] 0; // initial pressure gradient flowDir (1 0 0); // flow direction } Or from the PimpleFoam/Channel395 example (found it ! ) momentumSource { type pressureGradientExplicitSource; active on; //on/off switch selectionMode all; //cellSet // points //cellZone pressureGradientExplicitSourceCoeffs { fieldNames (U); Ubar ( 0.1335 0 0 ); } } In which the pressure is applied all over the place, I think. Anyhow whter I put one or the other file in, let's say, the Cavity example (in the systemo folder) nothing happens. This is logical, the control files need to know that I'm trying to impose a velocity somewere, but how do I do this? Sorry, and THX |
|
June 18, 2014, 15:59 |
|
#5 | |
Senior Member
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22 |
Quote:
Code:
momentumSource { type pressureGradientExplicitSource; active on; // on/off switch selectionMode all; // cellSet // points //cellZone <= HERE pressureGradientExplicitSourceCoeffs { fieldNames (U); Ubar ( 0.1335 0 0 ); } } Code:
selectionMode cellSet; cellZone rotor_zone; |
||
June 23, 2014, 12:04 |
|
#6 |
New Member
Lala Sasa
Join Date: Jun 2014
Posts: 16
Rep Power: 12 |
THX allot for the info!
Yes, the fvOption should be accompanied with the topoSet function. Looking into it. The multiphase-> throttle exampe seams to implement it, though not combined with the fvOption |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
Is Playstation 3 cluster suitable for CFD work | hsieh | OpenFOAM | 9 | August 16, 2015 15:53 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |