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

Frozen field simulation not solving for the tracer

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Gert-Jan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2024, 10:07
Unhappy Frozen field simulation not solving for the tracer
  #1
New Member
 
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2
Upa_upitas is on a distinguished road
Hey!

I'm working on determining the mixing time of a bioreactor at different rpm. To achieve this, a tracer injection (scalar additional variable) is simulated while monitoring its concentration. I work in CFX.

Due to the geometry of my fluid domain, steady-state simulations don't converge, so everything is done as a transient simulation, even to establish the velocity fields.

It works fine when the tracer injection is solved simultaneously with the establishment of the fluid and turbulence fields in a single simulation.

However, when using a Frozen Field approach, it doesn't work: all equations for the tracer remain at 0 in the solver step, as if it is never injected or calculated (even though the same injection mechanism works in a simultaneous simulation). For a Frozen Field approach, I'm following this procedure:

1. Perform a transient simulation (15s) of the reactor stirred at the desired speed. There is no tracer injection, and the tracer concentration (initial conditions) is 0 throughout the entire domain.
2. Add the tracer injection to the same .def file. Using Expert parameters, turn off the equations for the fluid and turbulence while activating the scalar equations.
3. In the solver, use the file from step 2 and solve with double precision, using the results file from step 1 as initial values.

This procedure doesn't cause the solver to crash, but the tracer equation (the only one being solved now) remains at 0 (see picture attached).

Do you have any idea why this might be happening? What am I doing wrong when moving from a simultaneous simulation to a Frozen Field approach?

Thanks for your help!
Attached Images
File Type: jpg Captura.JPG (63.3 KB, 8 views)
Upa_upitas is offline   Reply With Quote

Old   July 30, 2024, 18:35
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Using a transient model with a Frozen Rotor MFR model does not make sense to me. If you are modelling it transient then you should use a proper Transient Rotor/Stator model, ie: model the correct motion of the device.

Your problem may be linked to this - try running it transient rotor/stator and resolve the rotor motion.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 31, 2024, 05:18
Default
  #3
New Member
 
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2
Upa_upitas is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Using a transient model with a Frozen Rotor MFR model does not make sense to me. If you are modelling it transient then you should use a proper Transient Rotor/Stator model, ie: model the correct motion of the device.

Your problem may be linked to this - try running it transient rotor/stator and resolve the rotor motion.
Thank you for the answer

Are you talking about the interface "Frame change/Mixing model"? There is an option "Transient Motor Stator".

Once changed this option, how would you continue to model the tracer injection and mixing time? Two-step Frozen field or just one step simultaneously solving the fluid/turbulence field with the scalar?


My main concern right now, is that doing it simultaneously makes it impossible to use the right time step corresponding to 5º rotation of the impeller/time step--> the required time step is extremely small and the solving process take more several days and the solver always ends being crashed by the system. No .res file are generated.

Many thanks
Upa_upitas is offline   Reply With Quote

Old   July 31, 2024, 05:31
Default
  #4
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,887
Rep Power: 27
Gert-Jan will become famous soon enough
Please share your output file with all the settings.
To upload a file, use "Go Advanced"
Upa_upitas likes this.
Gert-Jan is offline   Reply With Quote

Old   July 31, 2024, 06:03
Default
  #5
New Member
 
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2
Upa_upitas is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Please share your output file with all the settings.
To upload a file, use "Go Advanced"
Hey,

the .out file is to heavy even using Go advanced settings. Which part of the definition or solver are you interested in?

If using transient rotor/stator should I use Pitch change in somehow?

It's computationally impossible to set a time step which ensures 5º rotation

Thanks
Upa_upitas is offline   Reply With Quote

Old   July 31, 2024, 06:06
Default
  #6
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,887
Rep Power: 27
Gert-Jan will become famous soon enough
Only the top part with the settings.
Everthing Between LIBRARY: and COMMAND FILE:
Gert-Jan is offline   Reply With Quote

Old   July 31, 2024, 06:09
Default
  #7
New Member
 
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2
Upa_upitas is on a distinguished road
------------------------
Upa_upitas is offline   Reply With Quote

Old   July 31, 2024, 06:11
Default
  #8
New Member
 
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2
Upa_upitas is on a distinguished road
------------------------------
Upa_upitas is offline   Reply With Quote

Old   July 31, 2024, 06:13
Default
  #9
New Member
 
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2
Upa_upitas is on a distinguished road
------------------------------------------------
Upa_upitas is offline   Reply With Quote

Old   July 31, 2024, 06:16
Default
  #10
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,887
Rep Power: 27
Gert-Jan will become famous soon enough
Why don't you upload a text file?
Gert-Jan is offline   Reply With Quote

Old   July 31, 2024, 06:18
Default
  #11
New Member
 
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2
Upa_upitas is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Why don't you upload a text file?
Here you are

I'm new in the forum sorry
Attached Files
File Type: txt file.txt (24.5 KB, 3 views)
Upa_upitas is offline   Reply With Quote

Old   July 31, 2024, 06:26
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Frozen rotor is not intended to be run in a transient simulation, especially one where you turn equations off.

While running it as a full transient simulation, with the interface as transient rotor/stator will take longer it is physically correct and will converge. So if this approach takes too long then you need more computing power.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 31, 2024, 06:32
Default
  #13
New Member
 
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2
Upa_upitas is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Frozen rotor is not intended to be run in a transient simulation, especially one where you turn equations off.

While running it as a full transient simulation, with the interface as transient rotor/stator will take longer it is physically correct and will converge. So if this approach takes too long then you need more computing power.
Thanks

So I should run it in a full transient with a Transient Motor Stator as mixing model in the interfaces and Pitch set at "none". I'm afraid that using the right 5º-time step won't be computationally possible so I will use larger time step while discussing it on the MSc Theso¡s report.

Just to check we are on the same page, when I said "Frozen Field approach" I didn't refer to the interface mixing model "Frozen Rotator". I was thinking on using a v-established fluid and turbulence results file as a initial values for the simulation solving for the scalar.

Many thanks
Upa_upitas is offline   Reply With Quote

Old   July 31, 2024, 06:41
Default
  #14
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,887
Rep Power: 27
Gert-Jan will become famous soon enough
You have a Frozen Rotor simulation setup in which you want to solve the transient tracer, while you don't solve the flow as Fluids=f.
Then what do you use as Flow field? Do you use the flow filed from the transient calculation as initial guess (through interpolation)?

Not sure but I guess this is not enough. Apparently, a interpolated solution is not used as flow field for your tracer. I guess that you should at least solve the flow for a microsecond.

So, I would add a step in between where you solve the flow with Frozen rotor for a single timestep of 1 microsecond. In that case CFX sets everything right. And then continue with the transient calculation of the passive tracer.
Gert-Jan is offline   Reply With Quote

Old   July 31, 2024, 07:12
Default
  #15
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,887
Rep Power: 27
Gert-Jan will become famous soon enough
As Glenn mentioned:
Remember that the Scalar will be solved in the variable "Velocity", in both Transient simulations with Transient Rotor-stator interactions and in Steady state calculations with Frozen Rotor.
In Transient calculations, this leads to realistic results since the tracer is convected by the variable Velocity AND moved by the rotation of the rotating domain.
In steady state calculations, with Frozen Rotor, the rotating domain is not rotating. So, in the simulation the tracer will only be convected by the variable Velocity. The tracer will not move by the rotating domain since it frozen. As a result, the tracer will move in the wrong direction in the rotating domain. It will be discontinuous over the interface because the variable Velocity is also discontinuous.

So, you make an error here when using frozen rotor. If the rotating domain is small compared to the mxing tank, this might be acceptable. Alternatively follow Glenn's advice.

I asked ANSYS to allow me to convect the tracer with the variable Velocity in Stn Frame in a frozen rotor setup, since this variable is continuous over the interface. That would give not perfect but more realistic results. At least, the discontinuity in the interface would disappear. Unfortunately, ANSYS doesn't listen to me.

I tested Fluent and Star-CCM+. They have the same problem. And both don't have an option to mix the tracer in the variable Velocity in Stn Frame.
Gert-Jan is offline   Reply With Quote

Old   July 31, 2024, 07:23
Default
  #16
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
So I should run it in a full transient with a Transient Motor Stator as mixing model in the interfaces and Pitch set at "none".
Yes, correct.

Quote:
I'm afraid that using the right 5º-time step won't be computationally possible so I will use larger time step while discussing it on the MSc Theso¡s report.
You should use a time step size determined by a sensitivity analysis. I suspect a 5° time step will be way too large.

Quote:
Just to check we are on the same page, when I said "Frozen Field approach" I didn't refer to the interface mixing model "Frozen Rotator". I was thinking on using a v-established fluid and turbulence results file as a initial values for the simulation solving for the scalar.
Your output file has this for the domain interface: Bottom:
FRAME CHANGE:
Option = Frozen Rotor
END

This is the Frozen Rotor I am referring to.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 31, 2024, 07:28
Default
  #17
New Member
 
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2
Upa_upitas is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post

You should use a time step size determined by a sensitivity analysis. I suspect a 5° time step will be way too large.
The time step necessary for 5º is extremely small (ie 1,6 to 0,4 ms depending on the rpm) and it takes several days to be solved in a full transient process. The university cluster where I sent the simulations just kills the simulation for being too long and heavy. Cannot go to this range of time step and requires to move to rotations larger than 5º.

Therefore, I'm interested in only solving for the scalar with the right time step using the v-established flow & turbulence results file...

Everything using the Transient Motor Stator as mixing model

1000 thanks for your answers !!!!!
Upa_upitas is offline   Reply With Quote

Reply

Tags
cfx, frozen flow, tracer, tracer injection


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
laplacianFoam with source term Herwig OpenFOAM Running, Solving & CFD 17 November 19, 2019 13:47
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50


All times are GMT -4. The time now is 15:55.