# .flux() meaning

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

 January 9, 2019, 09:13 .flux() meaning #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

 January 9, 2019, 11:00 #2 Senior Member   Michael Alletto Join Date: Jun 2018 Location: Bremen Posts: 615 Rep Power: 15 See this post Description of flux() method

January 10, 2019, 01:59
#3
Member

annan
Join Date: Nov 2016
Posts: 72
Rep Power: 9
Quote:
 Originally Posted by mAlletto See this post Description of flux() method
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 ...

 January 10, 2019, 02:20 #4 Senior Member   Michael Alletto Join Date: Jun 2018 Location: Bremen Posts: 615 Rep Power: 15 Flux is a public member Funktion of the fvMatrix class

 Tags openfoam, postprocess, solver development