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

How to add coupled euqations with coupled exponential term in a solver

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 4, 2019, 11:09
Smile How to add coupled euqations with coupled exponential term in a solver
  #1
New Member
 
Xun Lan
Join Date: Oct 2019
Posts: 21
Rep Power: 3
Lann is on a distinguished road
Hi, everyone.
I am new to OpenFoam and I feel so addicted when exploring.
The problem I need to solve is an equation system with the frame as below:

fvm::laplacian(a , X) = c*exp(X-Y)
fvm::laplacian(b , Y) = -c*exp(X-Y)

where
a, b and c are constant coefficients.
X and Y are two passive scalar fields to be solved.

I have no idea how to implement it in a solver (can be laplacianFoam).
My questions are:
1. How to deal with this coupled exponential equation? Should I treat it like what pisoFoam dose?
2. How to deal with the exponential source term. Should I use fvOptions? Since the second equation has the same source as equation but with negative sign.

Any suggestions and answers are welcome. Thanks in advance!

Last edited by Lann; November 14, 2019 at 10:29.
Lann is offline   Reply With Quote

Old   November 5, 2019, 11:13
Default
  #2
New Member
 
Xun Lan
Join Date: Oct 2019
Posts: 21
Rep Power: 3
Lann is on a distinguished road
I don't know if I should use fvOption or just coupled loop to solve this equation.
Any idea is super welcomed.

Thanks again
Lann is offline   Reply With Quote

Old   November 14, 2019, 10:24
Default
  #3
New Member
 
Xun Lan
Join Date: Oct 2019
Posts: 21
Rep Power: 3
Lann is on a distinguished road
Now I am more clear about the linearization of the exponential terms.
But still stumped on the coupling equations.
Lann is offline   Reply With Quote

Reply

Tags
coupled, coupled equations, exponential, fvoptions, solver

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
No difference in solver behaviour with implicit source term Gesetzt OpenFOAM Programming & Development 1 December 10, 2017 07:14
Reasons for decoupling the pressure and velocity computations highlando Main CFD Forum 36 April 10, 2017 11:41
creating an unsteady coupled solver m2montazari OpenFOAM Programming & Development 0 March 31, 2017 10:40
SIMPLE with coupled solver tladd OpenFOAM Running, Solving & CFD 1 August 17, 2015 12:17
segregated solver vrs coupled solver sm FLUENT 0 November 6, 2007 02:24


All times are GMT -4. The time now is 04:05.