|
[Sponsors] |
September 28, 2010, 06:08 |
particle number concentration in OpenFOAM
|
#1 |
New Member
Fabian
Join Date: Sep 2010
Posts: 8
Rep Power: 15 |
Hallo, everybody
I am using OpenFOAM-1.6. I combined a two-way coupling Lagrangian class kinematicCloud with sonicFoam, getting a compressible Eulerian-Lagrangian solver. I want to calculate the particle number concentration in each control volume (N/mesh.V) and the particle flux through the face of the control volume (N/(deltaT*face.area)). Somebody can give some help on C++ code? how to input the two terms into the main code? The main code is as follows, ----------------------------------------------------------------------------------------------------------------------------------------------------- #include "fvCFD.H" #include "basicPsiThermo.H" #include "turbulenceModel.H" #include "basicThermoCloud.H" #include "basicKinematicCloud.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // int main(int argc, char *argv[]) { #include "setRootCase.H" #include "createTime.H" #include "createMesh.H" #include "readGravitationalAcceleration.H" #include "createFields.H" #include "createClouds.H" #include "readPISOControls.H" #include "initContinuityErrs.H" #include "readTimeControls.H" #include "compressibleCourantNo.H" #include "setInitialDeltaT.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Info<< "\nStarting time loop\n" << endl; while (runTime.loop()) { Info<< "Time = " << runTime.timeName() << nl << endl; #include "readPISOControls.H" #include "compressibleCourantNo.H" thermoCloud1.evolve(); thermoCloud1.info(); kinematicCloud1.evolve(); kinematicCloud1.info(); #include "rhoEqn.H" #include "UEqn.H" #include "hsEqn.H" // --- PISO loop for (int corr=0; corr<nCorr; corr++) { #include "pEqn.H" } turbulence->correct(); rho = thermo.rho(); runTime.write(); Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s" << " ClockTime = " << runTime.elapsedClockTime() << " s" << nl << endl; } Info<< "End\n" << endl; return 0; } ----------------------------------------------------------------------------------------------------------------------------------------------------------------- Thank U very much! Grüß |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mesh file for flow over a circular cylinder | Ardalan | Main CFD Forum | 7 | December 15, 2020 13:06 |
Problem with decomposePar tool | vinz | OpenFOAM Pre-Processing | 18 | January 26, 2011 02:17 |
Particle Tracking | Batis | CFX | 2 | October 6, 2010 15:20 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 04:15 |
particle courant number | Michiel | Siemens | 1 | August 10, 2003 05:50 |