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

Use data from previous timestep

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2020, 01:15
Post Use data from previous timestep
  #1
New Member
 
Mehrdad
Join Date: Apr 2014
Posts: 11
Rep Power: 12
m_mehrdad is on a distinguished road
Dear All;
I want to simulate a dynamic body with remeshing in CFX19.1. Everything is fine But in simulate the motion of the body, I want to use this eq:

delta_y=0.5*acceleration_y*deltat^2+ VelocityY0*deltat

and

VelocityY=acceleration_y*deltat + VelocityY0

In this eq the VelocityY0 is the previous time step VelocityY.
Because the body motions are the y_translate and x_Rotation around the variable point, I can't read the VelocityY0 from (Mesh Velocity y) variable.


How can I use the previous data VARIABLE OR Monitoring at the new time?
m_mehrdad is offline   Reply With Quote

Old   January 4, 2020, 04:01
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
afaik you cannot access the values from previous timesteps without using user-fortran.
AtoHM is offline   Reply With Quote

Old   January 4, 2020, 04:11
Default
  #3
New Member
 
Mehrdad
Join Date: Apr 2014
Posts: 11
Rep Power: 12
m_mehrdad is on a distinguished road
Quote:
Originally Posted by AtoHM View Post
afaik you cannot access the values from previous timesteps without using user-fortran.
Thanks for your response. I don't know how to use user-Fortran. Can you help me?

What is setup in cfx-pre?
Thanks a lot.
m_mehrdad is offline   Reply With Quote

Old   January 4, 2020, 05:35
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Can you explain why the built-in rigid body solvers and immersed solid solvers are not suitable for this task? You should use the built-in capability if it is suitable.

User fortran is described in the CFX documentation. There are examples in the documentation and more are available on the ANSYS customer webpage.

You can access variable values from previous time steps without user fortran, but it is not a released feature, so it is not reliable and does not work in all cases. Do a search on the forum for TRANS_LOOP. I would not recommend a beginner in CFX try this approach, you might get unexpected behaviour.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks 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
problem in using previous solved data for new mesh mehrzad FLUENT 0 December 20, 2014 04:41
Velocity gradient in previous timestep mateus FLUENT 1 December 13, 2012 13:07
Restart a solidification with previous solidifation data in v9.4 jk75 FLOW-3D 2 August 28, 2010 21:40
Resolving from a previous timestep juho OpenFOAM Running, Solving & CFD 3 June 2, 2010 15:50
How to store transient data with various timestep? Oliver CFX 4 December 18, 2005 19:56


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