|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28 ![]() ![]() |
I have a question to the following piece of code taken from interDyMFoam.C of OpenFOAM-2.2.x.
In the curly braces the variable Urel is declared and used inside the if-statement. Where is Urel used in this solver? It is neither passed to any method as an argument nor should it be accessible outside the block within the curly braces. So, of what use is Urel? Code:
scalar timeBeforeMeshUpdate = runTime.elapsedCpuTime(); { // Calculate the relative velocity used to map the relative flux phi volVectorField Urel("Urel", U); if (mesh.moving()) { Urel -= fvc::reconstruct(fvc::meshPhi(U)); } // Do any mesh changes mesh.update(); } if (mesh.changing()) { |
|
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Capabilites of interDyMFoam | kilroy | OpenFOAM | 2 | April 29, 2013 12:29 |
small question about the functionalities of topological changes in OpenFoam | ngj | OpenFOAM Running, Solving & CFD | 2 | February 28, 2013 10:02 |
Question Re Engineering Data Source | imnull | ANSYS | 0 | March 5, 2012 13:51 |
internal field question - PitzDaily Case | atareen64 | OpenFOAM Running, Solving & CFD | 2 | January 26, 2011 15:26 |
Poisson Solver question | Suresh | Main CFD Forum | 3 | August 12, 2005 04:37 |