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

Can not start simulation using previous results

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2015, 07:52
Default Can not start simulation using previous results
  #1
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Guys, I built an entire fuel cell model using UDF. This steady state model has RP variables, 4 UDSI and many UDMI.

The problem is that, once I close fluent, I can not use the previous result as an initial condition. It simply diverges all the variables at first iteration.

Did anyone have this kind of problem before? Is there any way I should save it or variables that should be stored to start the simulation using the previous results?

Thank you in advance.
Bruno Machado is offline   Reply With Quote

Old   December 7, 2015, 09:16
Default
  #2
Senior Member
 
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21
brunoc is on a distinguished road
I think Fluent discards all UDS gradients, so if you're using those to assemble the equations at the start it is probably just using garbage, which would crash the solver. Is this your case?

I remember seeing something like this in a UDF from ANSYS. I don't quite remember the workaround, but what I think they did (I don't really trust my memory) was have the solver re-calculate gradients on the fly.
brunoc is offline   Reply With Quote

Old   December 14, 2015, 10:25
Default
  #3
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by brunoc View Post
I think Fluent discards all UDS gradients, so if you're using those to assemble the equations at the start it is probably just using garbage, which would crash the solver. Is this your case?

I remember seeing something like this in a UDF from ANSYS. I don't quite remember the workaround, but what I think they did (I don't really trust my memory) was have the solver re-calculate gradients on the fly.
Hi Bruno,

Do you mean I should compute the gradient from all the UDS before starting it again? In some kind of DEFINE_ON_DEMAND, for example?

Obrigado pela ajuda haha.

Cheers
Bruno Machado is offline   Reply With Quote

Old   December 14, 2015, 12:16
Default
  #4
Senior Member
 
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21
brunoc is on a distinguished road
Something like that, yes.

Estamos aqui pra ajudar
brunoc 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
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10:28
Simulation doesnt start iterating saisrikar STAR-CCM+ 3 August 15, 2011 01:14
Finished simulation doesn't start: floating point exception [Divide by zero] MaxCFD STAR-CCM+ 3 June 26, 2011 11:31
Steady-state simulation to start a transient simulation smagmon CFX 2 May 18, 2009 04:59
Can Fluent start a simulation from a negative time Ted Chu FLUENT 10 November 26, 2008 22:06


All times are GMT -4. The time now is 22:38.