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

Implicit expression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2014, 08:26
Default Implicit expression
  #1
New Member
 
Luigi Gurreri
Join Date: Jul 2012
Posts: 18
Rep Power: 14
Luigi is on a distinguished road
I have to calculate a variable by an implicit expression and I would use at the Right Hand Side of the expression the value of the variable at the previous iteration (steady-state simulation).
Is it possible? Is there a Predefined Expression in CEL to recall the previous value of the variable?
Luigi is offline   Reply With Quote

Old   February 3, 2014, 17:15
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The simple answer is no, you cannot do this in CFX.

If you have an implicit expression you will probably need user fortran to solve it.

Your comment about using the previous time step value is puzzling - this suggests your expression is explicit, not implicit.

But if you insist on doing this with CEL anyway, there are a few posts on the forum about how to get previous values. They are not pretty but they work.
ghorrocks is offline   Reply With Quote

Old   February 4, 2014, 06:56
Default
  #3
New Member
 
Luigi Gurreri
Join Date: Jul 2012
Posts: 18
Rep Power: 14
Luigi is on a distinguished road
Thanks for your reply
I will try to explain better my problem. I have an expression where the variable to be calculated can not be analytically made explicit. I thought that the code could be able to use such expression, since it solve numerically the equations; but it found cyclic the variable!!
So I need to solve somehow this implicit expression. Which could be the way??
I thought to recall the previous value of the variable on the right hand side of the expression, so that it would became explicit. How is it possible to do?
Luigi is offline   Reply With Quote

Old   February 4, 2014, 18:14
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Your questions are answered in my previous post.
ghorrocks is offline   Reply With Quote

Old   February 11, 2014, 18:13
Default
  #5
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
Try making an algebraic Additional Variable equal to the right hand side, then make your expression equal to the Additional Variable. You might need to provide initial values for the AV by using a previous solution. Still not sure if it would work.
There's info elsewhere on this forum for how to do this in a transient simulation (search for TRANS_LOOP), but since you are running steady state it should be simpler.
stumpy is offline   Reply With Quote

Reply

Tags
implicit expression, previous timestep


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
[swak4Foam] outputTime in Swak function immortality OpenFOAM Community Contributions 20 October 6, 2022 13:08
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 07:16
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 18:23


All times are GMT -4. The time now is 03:00.