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

What is the role of & in this piece of code?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2019, 00:47
Default What is the role of & in this piece of code?
  #1
Member
 
Bidesh Sengupta
Join Date: Sep 2018
Posts: 52
Rep Power: 3
BSengupta is on a distinguished road
Hi!
I am very new to start understanding the coding of openfoam.


I am trying to understand dbns code in foam-extend. But I am having bit of doubt in a specific part of the following code given below.


deltaRLeft & gradrho[own] or
deltaRRight & gradU[nei]
I thing & used here is a reference operator, but if any one can explain it in more detail, it will helpful for me.


Flux::evaluateFlux (

rhoFlux_[faceI],

rhoUFlux_[faceI],

rhoEFlux_[faceI],

rho_[own] + rhoLimiter[own]*(deltaRLeft & gradrho[own]),

rho_[nei] + rhoLimiter[nei]*(deltaRRight & gradrho[nei]),

U_[own] + cmptMultiply(ULimiter[own], (deltaRLeft & gradU[own])),

U_[nei] + cmptMultiply(ULimiter[nei], (deltaRRight & gradU[nei])),

T_[own] + TLimiter[own]*(deltaRLeft & gradT[own]),

T_[nei] + TLimiter[nei]*(deltaRRight & gradT[nei]),

R[own],

R[nei],

Cv[own],

Cv[nei],

Cp[own],

Cp[nei],

Sf[faceI],

magSf[faceI] );

What is the & exactly doing here, if it can be explained in detail. The part of the code is from dbns/numericFlux/numericFlux.C
BSengupta is offline   Reply With Quote

Old   October 18, 2019, 04:34
Default
  #2
Member
 
Bidesh Sengupta
Join Date: Sep 2018
Posts: 52
Rep Power: 3
BSengupta is on a distinguished road
I am sorry. I could understand it.
BSengupta is offline   Reply With Quote

Reply

Tags
coding style, foam ext 4.0, openfaom

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Writing a piece of code in OpenFOAM dela OpenFOAM Programming & Development 0 January 17, 2019 02:42
The FOAM Documentation Project - SHUT-DOWN holger_marschall OpenFOAM 242 March 7, 2013 13:30
Open Source Vs Commercial Software MechE OpenFOAM 28 May 16, 2011 12:02
Small 3-D code Zdravko Stojanovic Main CFD Forum 2 July 19, 2010 11:11
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 16:56


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