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

derivative in CEL expressions

Register Blogs Community New Posts Updated Threads Search

Like Tree20Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2024, 09:48
Default
  #101
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by Jiricbeng View Post
Opaque, thank you for clarifying.
So, to sum it up again, how shall I understand it - I defined the variable "Pressure.Time Derivative" in Pre, then ran the solver and opened the result file in CFD Post. But for some reason this variable does not work in CFD Post.
I understood that situation to be strange and that it should work. Or, please, did I miss some step in between?
Careful, to me:
Definition = left-hand side of an expression
Reference = usage on the right-hand side of an expression

You are not defining "Pressure.Time Derivative", you are referencing it in a local expression. The local expression is evaluated by the solver as needed, correct? Can you monitor your expression in the Solver Manager?

That is the end of the referencing of the expression. Do not recall if that forces the XXX.Time Derivative to also be written to the results file. It would be nice though if it happens automatically.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   April 18, 2024, 18:40
Default
  #102
Senior Member
 
Jiri
Join Date: Mar 2014
Posts: 221
Rep Power: 13
Jiricbeng is on a distinguished road
Thank you guys.

To Glenn: I did not find any variable including .Time Derivative in any extra output variable list and I cant even push it into the list anyhow...
To Opaque: I read your post carefully several times, it makes sense, but I basically do not know what to do practically based on this :-).
Yes, I created expression called "tlakderivace" which is equal to Pressure.Time Derivative. I cannot monitor this as it is not a single valued expression but a variable.
But even if I create an expression areaAve(Pressure.Time Derivative)@rotating to have single valued expression, the monitor does not work due to error message that the monitor has invalid argument Pressure.Time Derivative.

Well, please, could you give me a more step by step guide?
Jiricbeng is offline   Reply With Quote

Old   April 18, 2024, 20:12
Default
  #103
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You are right, the .Time Derivative variables do not seem to be available to put in the results file.

Some options:
1) Do your calculations in the solver where those variables are available
2) Define a new additional variable, set it to a CEL function and define it as [variable].Time Derivative. Then the time derivative should be available in the results file as your additional variable. A bit messy, but I suspect it will work.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   April 19, 2024, 04:54
Default
  #104
Senior Member
 
Jiri
Join Date: Mar 2014
Posts: 221
Rep Power: 13
Jiricbeng is on a distinguished road
Heureka! Done. Big thanks to both of you.

I summarize the procedure:
CFX Pre:
- create expression called for example MyExpDPDT which is defined as Pressure.Time Derivative
- create additional variable named for example as myderpressure, which is specific, units [Pa s^-1], tensor type = scalar
- go to domain, tab Fluid Models, scroll down and tick myderpressure. Then set it to Algebraic Equation and select the expression MyExpDPDT

RUN SOLVER

CFD POST
- when clicking on expression MyExpDPDT created in Pre, it works, no error.
- create new variable referencing to the expression MyExpDPDT. You have now the spatial variable time pressure derivative at each node.

One more big thanks.
Opaque likes this.
Jiricbeng is offline   Reply With Quote

Reply


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
Cel expressions RAMAN6089 CFX 13 December 1, 2009 00:17
junction box routine and CEL function bornspur CFX 2 February 3, 2009 03:24
Cel expressions for trasient problem Jervds CFX 0 March 4, 2008 11:03
Cel expressions Time dependent Juan Maria Campos CFX 8 December 27, 2007 19:16
CEL Expressions Nick CFX 3 September 25, 2007 15:54


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