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

.flux() meaning

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2019, 09:13
Default .flux() meaning
  #1
Member
 
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 9
annan is on a distinguished road
Dear foamers,

I have built a scalar transport solver to solve the following equation :

fvScalarMatrix psiEqn
{
fvm::ddt(psi)
+fvm::div(phi, psi)
+fvm::div(phiCf, psi)
-fvm::laplacian(D, psi)
};

phiCf is an additional flux, the solver gives me the results I was expecting. The problem is that I need the total diffusive flux which is equal to (D*div(psi)-div(phiCf*psi)), and I thought of using psiEqn.flux() but I don't know what this function gives as a results.

using psiEqn.flux() :
- do I get only convective flux (div(phi,psi)) ?
- do I get only diffusive flux (D*div(psi)) ?
- do I get the total diffusive flux (D*div(psi)-div(phiCf*psi)) ?
- or the total flux (D*div(psi)-div(phiCf*psi)-div(phi,psi)) ?

Thank you in advance for your help.
Annan
annan is offline   Reply With Quote

Old   January 9, 2019, 11:00
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 16
mAlletto will become famous soon enough
See this post

Description of flux() method
mAlletto is offline   Reply With Quote

Old   January 10, 2019, 01:59
Default
  #3
Member
 
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 9
annan is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
Thank you very much mAlletto for your answer
I have in fact seen that post, and I see that pEqn.flux() computes the diffusive flux, but as it was applied to poisson equation, I don't know if in my case it takes account of the convective fluxes also or not ...
annan is offline   Reply With Quote

Old   January 10, 2019, 02:20
Default
  #4
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 16
mAlletto will become famous soon enough
Flux is a public member Funktion of the fvMatrix class
mAlletto is offline   Reply With Quote

Reply

Tags
openfoam, postprocess, solver development


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
Meaning of values in combustion kane OpenFOAM Running, Solving & CFD 1 May 14, 2018 05:13
What is the meaning of pd in foam-extended 3.1 lxwd OpenFOAM Running, Solving & CFD 2 February 3, 2017 11:54
Static Pressure meaning Hardee FLUENT 1 February 5, 2016 21:34
Meaning of Ychar and Ypmma aylalisa OpenFOAM Pre-Processing 2 October 20, 2013 05:49
What's meaning of UDF FUNCTION zhaoxinyu Fluent UDF and Scheme Programming 0 March 31, 2010 08:04


All times are GMT -4. The time now is 22:03.