CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

change of residuals over time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2016, 03:10
Default change of residuals over time
  #1
Member
 
Join Date: Jul 2015
Posts: 33
Rep Power: 11
KeiJun is on a distinguished road
Dear Sir,

I am now calculating adsorption phenomenon of air (including N2, O2, Ar) using customized reactingFoam.

When executing the tutorial, residuals of U, p, Yi (N2, O2, Ar) change over time as attatched file.
Every residuals falls down at the same time, and after that it isn't be updated any more, though calculation on a terminal continues.

What does this mean?

I have already taken a second look at the equations of the solver, and chaned calculation conditions (maxCo is 0.3, 0.5, 1 / divSchemes is "limitedLinear" to "upwind" / laplacianSchemes is "orthogonal" to "correct" / nOuterCorrectors is 1 to 2, 4 / nNonOrthogonalCorrectors is 0 to 1, 2 / ...), but the result is the same.
Moreover, the time to fall down is almost same in various conditions.

According to the log file, q and Yi apparent valid, but U and p is three times of order as large as I assumed.

I have no idea what this residuals change means and where to have an eye to deal with this.

I am really apprecieated if you give me any advise.


Here, details that I customize are following:
・adsorption rate eqation "∂q/∂t = k*(qe - qi)" is added to the solver in stead of using the reaction rate equation of OF,
where q is the adsorption amount (mol-fluid/kg-adsorbent), k is adsorption rate coefficient (s^-1), qe is equilibrium adsorption amount (mol-fluid/kg-adsorbent).

・effect of decrease of each specie in fluid caused by adsorption is added like this:
・"rhop * Mi * ∂qi/∂t" to right hand side of YiEqn.H
    ・"-Σi (rhop * Mi * ∂qi/∂qt) * U" to right hand side of UEqn.H,
where rhop is adsorption density(kg/m3), Mi is molecular weight (kg/mol).

If necessary, I will attatch the source code and tutorial files.


Sincerely yours,

KeiJun
Attached Images
File Type: png BTC1_02(20)-gnuplot(residuals_U, p, O2, N2, Ar).png (42.9 KB, 17 views)
KeiJun is offline   Reply With Quote

Old   February 17, 2016, 02:58
Default
  #2
Member
 
Join Date: Jul 2015
Posts: 33
Rep Power: 11
KeiJun is on a distinguished road
Dear Sir,

I have found that every residuals isn't be updated after falling down but it is kept calculated in much small Δt.

Because of much small Δt, it was apparently that every residuals isn't be updated.

Moreover, I have found that the time for every residuals to fall down is when "Final residual" of every YiEqn is equal to "Initial residual" of it.

In detail, "Final residual"s of Uy, Uz, p, N2 and Ar are already equal to "Initial residual"s of them before residuals falling down, respectively, and "Final residual" of O2 comes equal to "Initial residual" of it at the time for residuals to fall down. "Final residual" of Ux is equal to "Initial residual" of it after some time step of residuals falling down.

What does this mean?
Does this mean that every YiEqn has converged?

Indeed, I think composition in each cell ought to keep changing moment by moment due to adsorption, and YiEqn cannot be converged.

If converged, I want calculation to be kept in not much small Δt after convergence.

Could you advise me how to deal with?


Sincerely,

KeiJun




I am now calculating adsorption phenomenon of air (including N2, O2, Ar) using customized reactingFoam.

When executing the tutorial, residuals of U, p, Yi (N2, O2, Ar) change over time as attatched file.
Every residuals falls down at the same time, and after that it isn't be updated any more, though calculation on a terminal continues.

What does this mean?

I have already taken a second look at the equations of the solver, and chaned calculation conditions (maxCo is 0.3, 0.5, 1 / divSchemes is "limitedLinear" to "upwind" / laplacianSchemes is "orthogonal" to "correct" / nOuterCorrectors is 1 to 2, 4 / nNonOrthogonalCorrectors is 0 to 1, 2 / ...), but the result is the same.
Moreover, the time to fall down is almost same in various conditions.

According to the log file, q and Yi apparent valid, but U and p is three times of order as large as I assumed.

I have no idea what this residuals change means and where to have an eye to deal with this.

I am really apprecieated if you give me any advise.
KeiJun is offline   Reply With Quote

Old   January 19, 2018, 11:59
Default source code
  #3
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 17
T.D. is on a distinguished road
Hi,
can you send your source code files ?
thanks
T.D. 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
Elastic or Plastic Deformations in OpenFOAM NickolasPl OpenFOAM Pre-Processing 36 September 23, 2023 09:22
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 03:36
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 11:08
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 10:34


All times are GMT -4. The time now is 08:29.