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

outputting results from one case as input to second case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2013, 13:40
Default outputting results from one case as input to second case
  #1
New Member
 
Join Date: Apr 2013
Posts: 20
Rep Power: 13
eromon84 is on a distinguished road
Evening,

I am currently undertaking a project that requires me to model a stage of a steam turbine and model multiphase flow through it. Unfortunately the ratio of nozzles to rotors is not conducive to modeling a nozzle and rotor row in one mesh. 20 nozzles to 151 rotor blades.

I can only have 512000 elements aswell. I can not find out how to run a simulation for my nozzles and save the values ( transient) at the outlet of the nozzle mesh to a file to be read as inlet values in my rotor simulation. Can someone please explain how this is conducted?

I am using Ansys Fluent 14.0
eromon84 is offline   Reply With Quote

Old   July 3, 2013, 10:04
Default
  #2
New Member
 
Join Date: Apr 2013
Posts: 20
Rep Power: 13
eromon84 is on a distinguished road
please can someone respond with some advice on this.
eromon84 is offline   Reply With Quote

Old   July 3, 2013, 19:11
Default
  #3
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Hi eromon,

There is a way, here's how : http://www.cfd-online.com/Forums/flu...tml#post427287

Now, if you don't know what are scheme files, etc., you will have to google a little bit and see by yourself how it works in Fluent. It's not difficult, but you will have to invest a couple of hours.

Good luck,
Frank
macfly is offline   Reply With Quote

Old   July 4, 2013, 07:53
Default
  #4
New Member
 
Join Date: Apr 2013
Posts: 20
Rep Power: 13
eromon84 is on a distinguished road
thank you very much macfly, i at least know what it is I should be searching for on google ^^ . Does this require any C or C++ programming knowledge?
eromon84 is offline   Reply With Quote

Old   July 4, 2013, 08:12
Default
  #5
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Scheme is a programming language itself: http://rosettacode.org/wiki/Category:Scheme

This webpage is particularly useful when your looking for code bits to execute some task, it shows you how to do it in whatever language: http://rosettacode.org/wiki/Category:Programming_Tasks

And this document can help: http://hpc.hud.ac.uk/w/index.php/Fil..._Reference.pdf
macfly is offline   Reply With Quote

Old   July 6, 2013, 19:26
Default
  #6
New Member
 
Join Date: Apr 2013
Posts: 20
Rep Power: 13
eromon84 is on a distinguished road
Hi again,

I have been reading the code in the link you sent me, and also learning more about programming with Scheme. Experimented abit myself with it in Fluent.

While I understand the commands for saving a Temperature profile , I am still not clear on how this profile is read in to a particular boundary within another simulation.

You have a line in your code that is not very clear for me to understand

(if (file-exists? "D:\Model2\T.prof") (ti-menu-load-string "define/boundary-conditions/wall/...ugly line answering many questions...")) ; define profile boundary condition

Is this some UDF that is defining the boundary condition for Model 1 based on output from Model 2? I understand most of the loop that you wrote...just not the part about how to read in a profile to a boundary.

For my case I have a Rotor ( Model 1 ) and exit Stator ( Model 2 ) and need some way of the temperature, pressure etc at exit of Model 1 being read in to the inlet boundary of Model 2 and then Model 2 is initialized based on this inlet boundary profile.

As I said, I can export the profile from Model 1 correctly now it seems, just how to read it in to a particular boundary in my Stator (Model 2) and have that particular profile used to initialize it.

I appreciate all the advise you have given me already, just there is so little documentation out there it seems on this aspect of fluent.

Thank you.
eromon84 is offline   Reply With Quote

Old   July 7, 2013, 08:08
Default
  #7
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Hi eromon,

The "...ugly line answering many questions..." is a series of answers to questions in order define a boundary condition. It looks like "no no yes 0.5 no"... Define boundary conditions manually in the TUI and you will understand what I mean. When Fluent reads a scheme where a boundary condition is defined in it, the line has to include the answers to those questions. This line is very model specific.

Somewhere in the process of defining a boundary conditions (e.g. a velocity profile), you answer "yes" to a question for defining the BC from a profile, and then you answer the other questions. You have to define the BC manually in the TUI in order to determine what series of answers you have to include in the "ugly line".

Hope I'm clear....!

Frank
macfly is offline   Reply With Quote

Old   July 8, 2013, 11:08
Default
  #8
New Member
 
Join Date: Apr 2013
Posts: 20
Rep Power: 13
eromon84 is on a distinguished road
Yeah I understand now. Plus after writing my previous post I carried on playing around with Fluent and understood better now how to load these profiles into a boundary condition.

What i might do is to first find a solution for Model 1 using known data. Then export Temperature profile. Go to Model 2, Load profile, and set this profile at inlet boundary manually.

Then I will execute the scheme files in both systems. From my understanding of how this works the profile data should be overwritten each time I read it in; so long as it has the same name and its referring to the same wall/surface.

My only concern is if I need to keep re-initializing using hybrid initialization after each reading in of a profile. The way I see initialization working is that it discards solution data and starts from zero iterations / time steps again. Is this correct?

I don't want to zero the flow data in the Model 2 Domain, I just need the flow to adjust itself to varying inlet pressures / temperatures over the time period I am running the simulation for.

Last edited by eromon84; July 8, 2013 at 14:04.
eromon84 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
interFoam running blowing up sandy13 OpenFOAM Running, Solving & CFD 2 May 5, 2015 07:16
How to Initialise my LES case using my RANS case is there any utility for it ? Alhasan OpenFOAM Running, Solving & CFD 2 May 10, 2014 00:14
SRF Solution issue with Prism+Tetra mesh compare to Hexa suryawanshi_nitin OpenFOAM Running, Solving & CFD 6 February 27, 2013 16:57
Different Results from Fluent 5.5 and Fluent 6.0 Rajeev Kumar Singh FLUENT 6 December 19, 2010 11:33
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 21:42.