|
[Sponsors] |
Frozen field simulation not solving for the tracer |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 30, 2024, 11:07 |
Frozen field simulation not solving for the tracer
|
#1 |
New Member
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2 |
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! |
|
July 30, 2024, 19:35 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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. |
|
July 31, 2024, 06:18 |
|
#3 | |
New Member
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2 |
Quote:
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 |
||
July 31, 2024, 06:31 |
|
#4 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
Please share your output file with all the settings.
To upload a file, use "Go Advanced" |
|
July 31, 2024, 07:03 |
|
#5 | |
New Member
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2 |
Quote:
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 |
||
July 31, 2024, 07:06 |
|
#6 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
Only the top part with the settings.
Everthing Between LIBRARY: and COMMAND FILE: |
|
July 31, 2024, 07:09 |
|
#7 |
New Member
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2 |
------------------------
|
|
July 31, 2024, 07:11 |
|
#8 |
New Member
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2 |
------------------------------
|
|
July 31, 2024, 07:13 |
|
#9 |
New Member
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2 |
------------------------------------------------
|
|
July 31, 2024, 07:16 |
|
#10 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
Why don't you upload a text file?
|
|
July 31, 2024, 07:18 |
|
#11 |
New Member
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2 |
Here you are
I'm new in the forum sorry |
|
July 31, 2024, 07:26 |
|
#12 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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. |
|
July 31, 2024, 07:32 |
|
#13 | |
New Member
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2 |
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". 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 |
||
July 31, 2024, 07:41 |
|
#14 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
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. |
|
July 31, 2024, 08:12 |
|
#15 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
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. |
|
July 31, 2024, 08:23 |
|
#16 | |||
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Quote:
Quote:
Quote:
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. |
||||
July 31, 2024, 08:28 |
|
#17 | |
New Member
Upa
Join Date: Mar 2024
Posts: 25
Rep Power: 2 |
Quote:
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 !!!!! |
||
Tags |
cfx, frozen flow, tracer, tracer injection |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
laplacianFoam with source term | Herwig | OpenFOAM Running, Solving & CFD | 17 | November 19, 2019 14:47 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 06:24 |
Error while running rhoPisoFoam.. | nileshjrane | OpenFOAM Running, Solving & CFD | 8 | August 26, 2010 13:50 |