CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Linearization of the source term of the diffusion equation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sbaffini

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2022, 03:43
Default Linearization of the source term of the diffusion equation
  #1
New Member
 
Zhejiang
Join Date: Oct 2022
Posts: 2
Rep Power: 0
M.L.QU is on a distinguished road
Hi guys,

I want to solve a convection-diffusion equation with an absorption source term (Liner Driving Force model and Langmuir-Freundlich isothermals), but I don't know how to linearise this source term. Please see the following equations:

\frac{\partial c}{\partial t}+u \frac{\partial c}{\partial z} -D_{z}\frac{\partial^{2} c}{\partial z^{2}}+\rho_{p} \frac{\partial q}{\partial t} =0

\frac{\partial q}{\partial t} =k^{*}_{LDF} (q^{*}-q)

q^{*}=\frac{q_{max} (bcRT)^{\frac{1}{n}}}{1+(bcRT)^{\frac{1}{n}}}

where c is the variable, and others are constant. I wonder how to linearise this q^{*}. Please give me some advice, and I really appreciate your time and patience.
M.L.QU is offline   Reply With Quote

Old   October 28, 2022, 06:22
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
One typically writes the source term as a linearization around a 0 state (i.e., previous iteration value) S\left(\phi\right) = S\left(\phi_0\right) + \partial S / \partial \phi|_0 \left(\phi - \phi_0\right), but then the actual implementation depends from the specific method you are using (i.e., solving in delta form or not). See also https://www.cfd-online.com/Wiki/Sour..._linearization.

Hopefully, you can do \frac{\partial S}{\partial c} by yourself, but the possibly problematic point I see here is that the derivative is not defined at c=0 (but the source term is). Honestly, I never dealed with such problem, but a possible way out is to simply saturate the derivative at a minimum value of c (but, again, this might depend from the implemetation).
M.L.QU likes this.
sbaffini is offline   Reply With Quote

Old   October 31, 2022, 10:27
Default
  #3
New Member
 
Zhejiang
Join Date: Oct 2022
Posts: 2
Rep Power: 0
M.L.QU is on a distinguished road
Thank you for your reply, I will read the web you mentioned.
M.L.QU is offline   Reply With Quote

Reply

Tags
absorptivity, diffusion equation, linearize, source terms


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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 20:51.