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

variable.primitivefield() meaning

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2021, 02:41
Default variable.primitivefield() meaning
  #1
New Member
 
Ibaraki
Join Date: Jul 2021
Posts: 9
Rep Power: 4
kraf is on a distinguished road
Hello, I'm trying to modify some files of a program in openfoam. Inside of one of this files (file.C) I have member functions as shown below.
My question is what the usage of .primitiveField(), .primitiveFieldRef and boundaryFieldRef() is. I could not find information regarding this topic and don't understand why they are used. Thank you in advance for your help.


/ * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //

void Foam::Modules::UpdateValues
(

const surfaceVectorField& wss,
surfaceScalarField& phi,
)const
{

UpdateValues(wss.primitiveField(),
,phi.primitiveFieldRef(),
);
forAll(wss.boundaryField(),patchI)
{
UpdateValues(wss.boundaryField()[patchI],
,phi.boundaryFieldRef()[patchI],

);
}
}
kraf is offline   Reply With Quote

Reply


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
What's the meaning of 'w' in 'wmake'? random_ran OpenFOAM Programming & Development 1 February 11, 2019 16:53
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
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


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