CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Monitoring residuals , is it safe ? (https://www.cfd-online.com/Forums/main/190427-monitoring-residuals-safe.html)

medaouarwalid July 13, 2017 10:26

Monitoring residuals , is it safe ?
 
Hi, i read that monitoring only the residuals can be treaky, and we should monitoring also values on interest, in my case velocity and temperature. By monitoring those values, how can we say that the solution is converged ? When the values dont change any more or when it becomes close to experimental results ? Or what ? Also, what are the acceptable values of residuals that can be published for continuity, velocity and energy

BlnPhoenix July 13, 2017 10:37

Transient or steady state simulation?

medaouarwalid July 13, 2017 10:46

Transient LES

Sent from my F1f using CFD Online Forum mobile app

BlnPhoenix July 13, 2017 11:01

You need to define what convergence means to you.

e.g. if you monitor temperature you can define convergence as: the calculated solution for temperature in each time step changes only in the second decimal place behind the comma. You need to get a feeling how exact your solutions per time step need to be. If you study convergence levels you will see that the change in temperature in each time step correlates to the level the residuals reach. So you can set automatic convergence detection if you know let's say for example that 1e-4 in residuals for energy translates to a max change in temperature in the xyz place behind the comma. You have to find that out for yourself.

medaouarwalid July 13, 2017 11:07

But when i took the mesures of temperature in experiance, i didnt took it with a fix time step so i have no idea how much it must be changing each timstep, althought i have an idea how much it changes every z/d , because i took temperature mesurements with velocity, each time i mesured velocity i mesured also temperature. I hope you understood me

Sent from my F1f using CFD Online Forum mobile app

BlnPhoenix July 13, 2017 11:08

Also for continuity. I usually accept a mass imbalance of < 0.1% as acceptable. Again this translates into a value for continuity residuals. Maybe something like 1e-4 or less. You need to check this.

medaouarwalid July 13, 2017 11:11

Quote:

Originally Posted by BlnPhoenix (Post 656955)
Also for continuity. I usually accept a mass imbalance of < 0.1% as acceptable. Again this translates into a value for continuity residuals. Maybe something like 1e-4 or less. You need to check this.

I am doing an example wright now, all residuals are less than 10^-5 exept for continuity it dident reach 10^-4 i dont know why

Sent from my F1f using CFD Online Forum mobile app

BlnPhoenix July 13, 2017 11:15

Quote:

Originally Posted by medaouarwalid (Post 656954)
But when i took the mesures of temperature in experiance, i didnt took it with a fix time step so i have no idea how much it must be changing each timstep, althought i have an idea how much it changes every z/d , because i took temperature mesurements with velocity, each time i mesured velocity i mesured also temperature. I hope you understood me

Sent from my F1f using CFD Online Forum mobile app

How long is your experimental time? When did you measure and how often?
You can simulate until maybe you first measured your temperature in experiment. If you measured first after 5 mins. simulate 5 mins. Also how exact is you measurement device? If you now the uncertainty in your measurements, you do need to be more exact in simulation than your measurement device.

BlnPhoenix July 13, 2017 11:17

Quote:

Originally Posted by medaouarwalid (Post 656958)
I am doing an example wright now, all residuals are less than 10^-5 exept for continuity it dident reach 10^-4 i dont know why

Sent from my F1f using CFD Online Forum mobile app

Check mass imbalance in your system, if your satisified. It sounds OK to me.

medaouarwalid July 13, 2017 11:20

Time of experimental was about an hour Because i took the velocities in 20 axial stations and for each axial station a go for 10 stations radially . I dont think that i can do a 1 hour of simulation because i am setting the time step = 10^-5 . If i can reac 10 seconds of simulation i am lucky 😥
The device is velocicalc
[IMG]lghttp.17652.nexcesscdn.net/808B15/magento/media/catalog/product/cache/8/image/500x500/ae8e27adf667b20d5f3db4b7e3a38cc2/9/5/9555_app.jpg[/IMG]
Sent from my F1f using CFD Online Forum mobile app

medaouarwalid July 13, 2017 11:20

Quote:

Originally Posted by BlnPhoenix (Post 656960)
Check mass imbalance in your system, if your satisified. It sounds OK to me.

What mass imbalance means ?

Sent from my F1f using CFD Online Forum mobile app

FMDenaro July 13, 2017 11:22

Since you are doing an LES, what you call residuals are only the terms you have in each time step in the formulation for solving the system of the equations. Now that depends on the choice of the formulation, are you using a full compressible flow solver? In such a case what about the Mach number? Are the residuals normalized?

medaouarwalid July 13, 2017 11:29

Quote:

Originally Posted by FMDenaro (Post 656964)
Since you are doing an LES, what you call residuals are only the terms you have in each time step in the formulation for solving the system of the equations. Now that depends on the choice of the formulation, are you using a full compressible flow solver? In such a case what about the Mach number? Are the residuals normalized?

I am suppozing that the flow is incompressible because the velocity inlet is lot less than speed of sound. (6.66 m/s) so much number is 0.02
Residuals are not normalized

Sent from my F1f using CFD Online Forum mobile app

FMDenaro July 13, 2017 11:47

Your case will be stiff using a compressible flow model. Are you preconditioning the equations? Could you switch to a pure incompressible solver? Try to evaluate the normalized residuals

medaouarwalid July 13, 2017 11:53

Quote:

Originally Posted by FMDenaro (Post 656969)
Your case will be stiff using a compressible flow model. Are you preconditioning the equations? Could you switch to a pure incompressible solver? Try to evaluate the normalized residuals

Excuse me but I didn't understand .

Sent from my F1f using CFD Online Forum mobile app

FMDenaro July 13, 2017 12:21

Quote:

Originally Posted by medaouarwalid (Post 656972)
Excuse me but I didn't understand .

Sent from my F1f using CFD Online Forum mobile app


I think I cannot help you if you are not aware about these issues? What about your background in CFD?

medaouarwalid July 13, 2017 12:35

Quote:

Originally Posted by FMDenaro (Post 656981)
I think I cannot help you if you are not aware about these issues? What about your background in CFD?

Not very good, everdy day i learn something new, what should i learn now?

Sent from my F1f using CFD Online Forum mobile app

FMDenaro July 13, 2017 12:46

Quote:

Originally Posted by medaouarwalid (Post 656983)
Not very good, everdy day i learn something new, what should i learn now?

Sent from my F1f using CFD Online Forum mobile app


You should attend a couple of course in fluid mechanics and CFD ... there are a lot of CFD textbooks, each one has some peculiarity and some issues more detalined than others. However, it requires some effort and some years to be good in CFD....

medaouarwalid July 13, 2017 13:19

Quote:

Originally Posted by FMDenaro (Post 656986)
You should attend a couple of course in fluid mechanics and CFD ... there are a lot of CFD textbooks, each one has some peculiarity and some issues more detalined than others. However, it requires some effort and some years to be good in CFD....

I stied and i am studying but of corse i can not know every thing. thats why i ask lot of​ questions, like this i am progressing every day. I have a simulation to do , i can not wait until i read every thing, i only have to understand things that have relation with my case, and with time i will learn more and more about other things

Sent from my F1f using CFD Online Forum mobile app

BlnPhoenix July 13, 2017 13:59

Quote:

Originally Posted by medaouarwalid (Post 656962)
Time of experimental was about an hour Because i took the velocities in 20 axial stations and for each axial station a go for 10 stations radially . I dont think that i can do a 1 hour of simulation because i am setting the time step = 10^-5 . If i can reac 10 seconds of simulation i am lucky 😥
The device is velocicalc
[IMG]lghttp.17652.nexcesscdn.net/808B15/magento/media/catalog/product/cache/8/image/500x500/ae8e27adf667b20d5f3db4b7e3a38cc2/9/5/9555_app.jpg[/IMG]
Sent from my F1f using CFD Online Forum mobile app


So did you find some average temperature in your experiment? Have you measured exactly after one hour? Try to describe your experimental findings. Is the temperature constant over time, if yes what do you expect if you would measure after five minutes? Same temp as after one hour?

If you cannot afford the simulation to run to one hour, i would concider redoing your measurements and run it till you have experimental data to compare.

Mass imbalance means that the mass flow in the systems equals the mass flow out of the system. It's very important to ensure mass balance in every time step. So please check for that and as mentioned set your target residual values accordingly. Also for temperature and velocities as i described above. Your residuals sound good but try to look for the actual change in values to see what they actually mean.


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