|
[Sponsors] |
What does fvc::interpolate(U) & mesh.Sf() stand for? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 29, 2016, 04:03 |
What does fvc::interpolate(U) & mesh.Sf() stand for?
|
#1 |
Member
Join Date: Apr 2016
Posts: 91
Rep Power: 10 |
Hi,
I am looking at the source code of potential foam: 1. when I open createFields.H of potential foam it says: "surfaceScalarField phi" What does this stand for? And how can I imagine this? 2. then it is said fvc::interpolate(U) & mesh.Sf() What does this mean? Phi is interpolated of U and? 3. For volVectorFields it is normaly replaced by "mesh" . What does this mean? I allready read wiki etc. but I don't get it. It's hard to find a documentation about it. Thank you |
|
July 29, 2016, 09:19 |
|
#2 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
phi is the flux. The flux is for compressible solvers rho*u*A or otherwise u*A on the faces. Or more precisely the flux between cells. Your velocity field u in your timestep folders is saved at the center of each cell. The flux on the other hand is the value on the faces between cells. It is the flow from one cell to the next. Therefore it is a surfaceScalarField and not a volScalarField like u. You can calculate your flux with different methods (upwind linear etc).
now to your method here: Code:
fvc::interpolate(U) & mesh.Sf() |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
phi -= pEqn.flux() vs. linearInterpolate(U) & mesh.Sf() | santiagomarquezd | OpenFOAM Programming & Development | 33 | October 15, 2019 11:24 |