CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

update initial conditions every 10 iterations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2011, 07:45
Question update initial conditions every 10 iterations
  #1
Member
 
Join Date: Mar 2010
Posts: 42
Rep Power: 16
lindner is on a distinguished road
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
lindner is offline   Reply With Quote

Old   November 28, 2011, 10:06
Default
  #2
Member
 
Join Date: Oct 2011
Posts: 32
Rep Power: 15
Cluain is on a distinguished road
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.
Cluain is offline   Reply With Quote

Old   November 28, 2011, 11:41
Default
  #3
Member
 
Join Date: Mar 2010
Posts: 42
Rep Power: 16
lindner is on a distinguished road
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.
lindner is offline   Reply With Quote

Old   November 28, 2011, 12:25
Default
  #4
Member
 
Join Date: Oct 2011
Posts: 32
Rep Power: 15
Cluain is on a distinguished road
Great, a simple iterative function should sort that. A bit of imagination and you will have it.
Cluain is offline   Reply With Quote

Reply

Tags
cel, hydraulic turbine, iterative update


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:19.