|
[Sponsors] |
update initial conditions every 10 iterations |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 28, 2011, 07:45 |
update initial conditions every 10 iterations
|
#1 |
Member
Join Date: Mar 2010
Posts: 42
Rep Power: 16 |
Hi all,
I'm testing the whole operation curve of a hydraulic turbine, but the net head is highly dependent of the mass flow. I want to update the Total Pressure inlet condition every 10 timesteps, to match the new losses. The inlet condition would be something like this: Ptotal,in = 115000[Pa] - k*Q^2 where k is a constant for losses and Q the massflow. is it possible to do with cel expressions to update the boundary every 10 or more iterations? Thank you in advance, lindner |
|
November 28, 2011, 10:06 |
|
#2 |
Member
Join Date: Oct 2011
Posts: 32
Rep Power: 15 |
Yes, you can. However, you will have to do an expression for the current P rather than the total.
Just set the input to an expression and define the expression for current pressure. CEL is quite easy to learn and there are quite a few specific examples in the tutorials provided with CFX, just watch the units. Hope this helps. |
|
November 28, 2011, 11:41 |
|
#3 |
Member
Join Date: Mar 2010
Posts: 42
Rep Power: 16 |
Hi Martin,
Thanks for the quick answer! The cel expression is ok now, the only problem is to force the cfx to execute this expression every x timesteps (without fortran). Im reading about user functions and user subroutine to find something about it. |
|
November 28, 2011, 12:25 |
|
#4 |
Member
Join Date: Oct 2011
Posts: 32
Rep Power: 15 |
Great, a simple iterative function should sort that. A bit of imagination and you will have it.
|
|
Tags |
cel, hydraulic turbine, iterative update |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compressible Nozzle Flow | sebastian | OpenFOAM Running, Solving & CFD | 14 | September 21, 2016 11:47 |
alphaEqn.H in twoPhaseEulerFoam | cheng1988sjtu | OpenFOAM Bugs | 15 | May 1, 2016 17:12 |
Velocity blows up suddenly after 30,000+ iterations | lordvon | OpenFOAM Running, Solving & CFD | 15 | October 19, 2015 14:52 |
Computational time | sunnysun | OpenFOAM Running, Solving & CFD | 5 | March 16, 2009 04:32 |
Negative value of k causing simulation to stop | velan | OpenFOAM Running, Solving & CFD | 1 | October 17, 2008 06:36 |