|
[Sponsors] |
February 15, 2011, 06:57 |
== operator
|
#1 |
Senior Member
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 16 |
Hi foamers,
I know the "==" operator as an equality operator in C, i.e. (a==b) suppose to return true or false. But then I can't understand following lines of interFoam: Code:
rho == alpha1*rho1 + (scalar(1) - alpha1)*rho2; Code:
solve ( UEqn == fvc::reconstruct ( ( fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1) - ghf*fvc::snGrad(rho) - fvc::snGrad(p_rgh) ) * mesh.magSf() ) ); Code:
rho = alpha1*rho1 + (scalar(1) - alpha1)*rho2; Best regards, Ilya |
|
Tags |
equality operator, openfoam operators |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modifying the laplacian operator | mlawson | OpenFOAM Running, Solving & CFD | 22 | July 16, 2018 04:56 |
Create a biharmonic operator | Pascal_doran | OpenFOAM Programming & Development | 12 | May 22, 2016 06:02 |
Installation of OpenFOAM15dev | antonio_ing | OpenFOAM Installation | 34 | December 18, 2009 10:06 |
Laplacian operator and nuSgs for heat equation | Bedotto | OpenFOAM Programming & Development | 4 | September 7, 2009 15:08 |
Operator declaration in Thermophysical library | lena | OpenFOAM Running, Solving & CFD | 0 | March 12, 2009 09:47 |