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

Recursive expressions in CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 25, 2019, 16:46
Lightbulb Recursive expressions in CFX
  #1
New Member
 
Alex
Join Date: Jan 2018
Posts: 9
Rep Power: 8
Viento is on a distinguished road
For example, I am modeling a free piston, accelerated with pressure. So I need to set a changing speed.

I can easily find acceleration a = PS/m и ΔU = a*timestep. The piston has inertia, and its speed increases (or maybe decreases) with each timestep.

So, I need "cumulative" expression like U = U+ΔU, to change the speed per each step. But CFX does not support self-referencing expressions. How to do this correctly?
Viento is offline   Reply With Quote

Old   August 27, 2019, 04:52
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,929
Rep Power: 28
Gert-Jan will become famous soon enough
You should not set the velocity on a free piston. The piston needs to find its position by itself. Probably by deforming mesh. Please look for the tutorial #23 on the ANSYS support site.
Gert-Jan 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
CFX Post - expressions / math. operations meister-hubert CFX 1 May 8, 2018 16:21
CFX: Insert custom mesh locators / Use user locations as locators in the expressions heling CFX 15 February 19, 2018 12:35
How to define a static aditional variable in CFX cardioCFD CFX 8 January 22, 2018 05:58
CFX Post Expressions number decimals njiang CFX 3 December 13, 2013 05:39
CFX Expressions lex CFX 6 January 7, 2010 09:12


All times are GMT -4. The time now is 13:56.