|
[Sponsors] |
June 18, 2015, 11:30 |
Print and Read data every time step
|
#1 |
New Member
Oliver Westbrook-Netheton
Join Date: Jan 2014
Posts: 16
Rep Power: 12 |
Hi all,
I am trying to couple the lift experienced by a 2D cylinder to its subsequent displacement. To do this I am trying to implement the following within Star-CCM+. 1. Calculate and print the lift of the cylinder. 2. Read the lift back into Star-CCM+ at the next time step and calculate its velocity, then re print lift at new time step and repeat 1. I have already managed to force the cylinder to oscillate assuming a simple harmonic motion with an overset mesh and defining the velocity across time steps for the cylinder. If what I am trying to do is possible within Star-CCM+, how can I print and read in a vector every time step? Is it best to create a macro or can I just auto export/tabular data somehow? Thanks, Ollie. |
|
June 19, 2015, 07:32 |
|
#2 |
Member
kris
Join Date: May 2014
Posts: 73
Rep Power: 12 |
You can use a macro to do this.
Another way is to use a field function with field monitor. You could create a field monitor with sliding window of 1 time step and then use that as your input for the next step. However, you have to think about what will happen for the first time step. Could you provide more details of your analysis? I am just curious as to why you want to do this. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
real comparison in fortran not working | ognik | Main CFD Forum | 2 | February 7, 2015 19:53 |
Transient flow in fluent | linyx | FLUENT | 15 | April 24, 2013 10:54 |
IFStream read float point data problem | liu | OpenFOAM Running, Solving & CFD | 0 | October 24, 2008 13:14 |
How to read data into my UDF??? | Harshit Gupta | FLUENT | 3 | June 15, 2006 03:34 |