CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Print and Read data every time step

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2015, 10:30
Default Print and Read data every time step
  #1
New Member
 
Oliver Westbrook-Netheton
Join Date: Jan 2014
Posts: 16
Rep Power: 12
Ollie West is on a distinguished road
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.
Ollie West is offline   Reply With Quote

Old   June 19, 2015, 06:32
Default
  #2
Member
 
kris
Join Date: May 2014
Posts: 73
Rep Power: 12
kguntur is on a distinguished road
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.
kguntur 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
real comparison in fortran not working ognik Main CFD Forum 2 February 7, 2015 18:53
Transient flow in fluent linyx FLUENT 15 April 24, 2013 09:54
IFStream read float point data problem liu OpenFOAM Running, Solving & CFD 0 October 24, 2008 12:14
How to read data into my UDF??? Harshit Gupta FLUENT 3 June 15, 2006 02:34


All times are GMT -4. The time now is 19:52.