CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF to transfer results from one case to the next case

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By akarlin

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2013, 22:28
Default UDF to transfer results from one case to the next case
  #1
New Member
 
Join Date: Jul 2013
Posts: 18
Rep Power: 13
howhs is on a distinguished road
Hi everyone,

I am rather new to UDF. I would like to transfer the results from the current case file (steady state simulation) to the next case file (transient simulation). May I know how can i do it? Is there a need to write the UDF to do so? If there is a need, may i know how can i do it?

Thank you very much in advance.
howhs is offline   Reply With Quote

Old   July 15, 2013, 19:22
Default
  #2
New Member
 
Adam Karlin
Join Date: Nov 2011
Posts: 4
Rep Power: 15
akarlin is on a distinguished road
I am assuming you are trying to use your steady state results as an initial condition for your transient case. In such a case it is possible to, after running your steady state to convergence, click the general tab and set time to transient. Your steady state results will automatically be carried over to your transient run. Make sure you set an appropriate time step in the run calculation tab. Also, it is a good idea to save the case and data before proceeding.

If for some reason there is a difference in the meshes between your steady state and transient runs you can use Fluent's built in interpolation to bring over the results. In steady state with the results open, go to File>Interpolate>Write data and select all cell zones and fields then click write. Save the .ip file somewhere so that you will be able to find it again. In the transient case go to File>interpolate>read data and select the .ip file. Congrats, you've just brought over the steady state data.

Both of these options assume the geometry/domain between the two are identical. I can't think of a reason why this would not be true. No UDF's are necessary. Of course I'm sure you've probably already figured all this out by now but it cannot hurt to post anyway.

Best regards,
Adam
rarnaunot likes this.
akarlin is offline   Reply With Quote

Old   July 15, 2013, 23:15
Default
  #3
New Member
 
Join Date: Jul 2013
Posts: 18
Rep Power: 13
howhs is on a distinguished road
Thank you so much for your reply!
There will be no difference in the meshes between the steady and transient runs.

I have another question. I understand that we need to use udf to write out a script if we want the flow to be a developed flow. I was thinking if it makes sense to instead of writing a udf, we run a steady state flow to allow the flow to become developed and continue it with the transient flow (as what you mentioned).

If it does not make sense, could you assist me in writing the udf for developed flow?

Thank you so much in advance!
howhs is offline   Reply With Quote

Old   July 16, 2013, 10:25
Default
  #4
New Member
 
Adam Karlin
Join Date: Nov 2011
Posts: 4
Rep Power: 15
akarlin is on a distinguished road
That seems to be the most logical way forward (starting with steady state and proceeding to transient). Whenever possible that is how I start a transient simulation. This is a good approach to take when you are interested in the long term solution (pseudo-periodic/steady state) of the transient system since it can cut back considerably on the total number of time steps required. During the transient solution monitor the drag or some other relevant parameter to determine if the solution has reached a stable state.

What exactly are you modeling and why is it necessary to model it transient?
akarlin is offline   Reply With Quote

Old   July 17, 2013, 00:31
Default
  #5
New Member
 
Join Date: Jul 2013
Posts: 18
Rep Power: 13
howhs is on a distinguished road
Thank you for your reply.
Basically, I am doing a simple simulation on heat transfer due to the subsea sensor (acting as a cold spot) relating to subsea engineering. I will simulating a steady state flow during the oil production phase in a subsea pipeline. Assuming that 10m of the piping will be suffice to achieve adiabatic conditions on both sides of the pipes. A certain inlet velocity is given and a steady state simulation is done.
Now, during a production shutdown (sometime, there is a need to do intervention due to some reasons), the production oil will stop flowing. During this instant when the inlet velocity is zero, I am studying the transient state and temperature drop from the cold spot is noted. That is basically what I have doing.
howhs 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
using define mass transfer udf for cavitation Komon Fluent UDF and Scheme Programming 14 June 21, 2016 03:50
UDF and UDM for heat transfer coeff. calculation Schluckner Fluent UDF and Scheme Programming 1 October 20, 2013 14:39
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT subhankar_bhandari Main CFD Forum 0 August 19, 2010 04:01
writing UDF for modelig mass transfer for VOF ardalan soleymani FLUENT 0 July 11, 2007 02:09
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24


All times are GMT -4. The time now is 16:23.