|
[Sponsors] |
December 21, 2016, 02:47 |
what does U.mesh mean?
|
#1 |
New Member
longyun wang
Join Date: Dec 2016
Posts: 6
Rep Power: 9 |
Hi,
I am learning the icoFoam code and can't understand this: surfaceScalarField phiHbyA ( "phiHbyA", fvc::flux(HbyA) + fvc::interpolate(rAU)*fvc::ddtCorr(U, phi) ); so what is the phiHbyA's equation? and when I search for the meaning of ddtCorr(U, phi), U.mesh and U.name in it I can't understant either. { return fv::ddtScheme<Type>::New ( U.mesh(), U.mesh().ddtScheme("ddt(" + U.name() + ')') ).ref().fvcDdtPhiCorr(U, phi); } what does above code stand for? thx a lot. finally, I really don't understand how the piso loop run in code, can anyone explain for me? thx very much! Last edited by longyun000; December 21, 2016 at 04:02. |
|
December 21, 2016, 07:54 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
You should use doxygen for understanding the code. phiByA is not an equation it is a surfaceScalarField like the flux. U.mesh() and U.name are just functions related to the volVectorField, alias GenericField. As I already mentioned, you should use Doxygen. There you will find your answer.
__________________
Keep foaming, Tobias Holzmann |
|
December 21, 2016, 10:34 |
|
#3 | |
New Member
longyun wang
Join Date: Dec 2016
Posts: 6
Rep Power: 9 |
Quote:
I have used doxygen and can't understand some code still. I have known the meaning of phiHbyA, but when calculating it why there is a fvc::interpolate(rAU)*fvc::ddtCorr(U, phi). Its code is: 154 ddtCorr 155 ( 156 const GeometricField<Type, fvPatchField, volMesh>& U, 157 const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf 158 ) 159 { 160 return fv::ddtScheme<Type>::New 161 ( 162 U.mesh(), 163 U.mesh().ddtScheme("ddt(" + U.name() + ')') 164 ).ref().fvcDdtUfCorr(U, Uf); 165 } and I can't understand this entirely, could you expain it to me? |
||
Tags |
ddtcorr, u.mesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tensor Implementation into a Constructor | pablitobass | OpenFOAM Programming & Development | 0 | May 2, 2015 08:40 |
Programming questions | smart | OpenFOAM Programming & Development | 35 | July 9, 2013 09:21 |