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

How can we implement a fully implicit linear source term?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2021, 21:15
Default How can we implement a fully implicit linear source term?
  #1
New Member
 
Join Date: Jun 2020
Location: UK
Posts: 22
Rep Power: 5
Rango is on a distinguished road
Hi,

I would like to solve the following equation:

-\nabla.(\kappa\nabla\phi) + s = 0,

to obtain \phi field for a 3-layered simple mesh setup. Here s is a linear source term which is zero for 'upper' and 'lower' layers. For the 'mid' layer, however, we have:

s_{mid-layer}=f(\phi_{upper-layer}, \phi_{lower-layer}),

where f is a linear function.

Example: for block 3 we have: s_3=a_0\phi_1+a_1\phi_2+a_2

where a_0,a_1,a_2 are constant properties of block 3.

Is there a way to solve this equation for the whole mesh while treating the mid-layer as a buffer? Please note that the role of 'mid-layer' is nothing but coupling \phi values in 'upper-layer' and 'lower-layer' through s.

I would appreciate your help on this.

Cheers

Last edited by Rango; February 21, 2021 at 18:31.
Rango 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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 14:30
[OpenFOAM.com] swak4foam compiling issues on a cluster saj216 OpenFOAM Installation 5 January 17, 2023 16:05
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18


All times are GMT -4. The time now is 11:48.