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

ref() function do in class surfaceScalarField

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By mAlletto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2019, 21:29
Default ref() function do in class surfaceScalarField
  #1
Member
 
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7
sjohn2 is on a distinguished road
What does the .ref() do in surfacescalarfield
example in interfoam alphaEqn.H
talphaPhi1Corr.ref()
sjohn2 is offline   Reply With Quote

Old   November 15, 2019, 06:31
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
It returns a reference to the field
frobaux and lpz456 like this.
mAlletto is offline   Reply With Quote

Old   April 24, 2020, 16:05
Default
  #3
New Member
 
Navid
Join Date: Nov 2015
Posts: 20
Rep Power: 10
navidamin is on a distinguished road
I am trying to refer to a dimensioned volScalarField like this:
Code:
scalarField& tmpWgh = weights.ref();

what should I do so that tmpWgh elements are dimensioned same as weights itself?
navidamin 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
[mesh manipulation] refineMesh Error mohsen.boojari OpenFOAM Meshing & Mesh Conversion 3 March 1, 2018 22:07
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 04:37
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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