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

what does U.mesh mean?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 21, 2016, 02:47
Smile what does U.mesh mean?
  #1
New Member
 
longyun wang
Join Date: Dec 2016
Posts: 6
Rep Power: 9
longyun000 is on a distinguished road
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.
longyun000 is offline   Reply With Quote

Old   December 21, 2016, 07:54
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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
Tobi is offline   Reply With Quote

Old   December 21, 2016, 10:34
Default
  #3
New Member
 
longyun wang
Join Date: Dec 2016
Posts: 6
Rep Power: 9
longyun000 is on a distinguished road
Quote:
Originally Posted by Tobi View Post
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.
Thx very much for replying,
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?
longyun000 is offline   Reply With Quote

Reply

Tags
ddtcorr, u.mesh


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
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


All times are GMT -4. The time now is 17:50.