|
[Sponsors] |
![]() |
![]() |
#1 |
Member
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 9 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#3 | |
Member
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 9 ![]() |
Quote:
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 ... |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 ![]() |
Flux is a public member Funktion of the fvMatrix class
|
|
![]() |
![]() |
![]() |
Tags |
openfoam, postprocess, solver development |
|
|
![]() |
||||
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 |