|
[Sponsors] |
it seems compressibleCourantNo doesn't account for wave velocities.whats the solution |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 8, 2013, 09:04 |
it seems compressibleCourantNo doesn't account for wave velocities.whats the solution
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
in cases where there are compression or expansion waves its important to put the into account for calculating courant Number but it isn't in OpenFOAM code.why?
also there is a factor of .5 in equation.why it is there in formula? Code:
#include "compressibleCourantNo.H" #include "fvc.H" Foam::scalar Foam::compressibleCourantNo ( const fvMesh& mesh, const Time& runTime, const volScalarField& rho, const surfaceScalarField& phi ) { scalarField sumPhi ( fvc::surfaceSum(mag(phi))().internalField() / rho.internalField() ); scalar CoNum = 0.5*gMax(sumPhi/mesh.V().field())*runTime.deltaTValue(); scalar meanCoNum = 0.5*(gSum(sumPhi)/gSum(mesh.V().field()))*runTime.deltaTValue(); Info<< "Region: " << mesh.name() << " Courant Number mean: " << meanCoNum << " max: " << CoNum << endl; return CoNum; } |
|
April 9, 2013, 05:03 |
|
#2 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
how should we account for wave speeds when they are important to us in the problem?
Any idea or guidance are be thanked. |
|
April 10, 2013, 05:58 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
do i understand right about courant number in openfoam?
Whats your opinion openfoamers? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Asymmetrical solution using RANS | Marli | FLUENT | 2 | January 9, 2015 09:26 |
Solution Diverging with Trimmer Mesh | rietuk | STAR-CCM+ | 8 | February 27, 2013 04:50 |
Why 3D solid-pore geometry showing diverged solution? | Sargam05 | OpenFOAM | 0 | December 3, 2012 15:45 |
Analytic solution for 2D steady Euler equations | jojo81 | Main CFD Forum | 0 | October 15, 2012 12:05 |
Doubt on Implicit Methods | analyse In India | Main CFD Forum | 10 | March 9, 2007 03:01 |