|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 9 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Member
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 9 ![]() |
I am sorry. I could understand it.
|
|
|
|
|
|
![]() |
| Tags |
| coding style, foam ext 4.0, openfaom |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |