|
[Sponsors] |
April 14, 2015, 04:25 |
|
#41 | |
New Member
jiujiumin
Join Date: May 2013
Posts: 9
Rep Power: 12 |
Quote:
Your attached files are the WALE model for compressible flow in openFOAM ,Iwant to get the WALE model for incompressible flow in openFOAM, Or can I know what the name of the incompressible WALE model is in openFOAM? cheers jiujiumin |
||
April 14, 2015, 04:30 |
|
#42 | |
New Member
jiujiumin
Join Date: May 2013
Posts: 9
Rep Power: 12 |
Quote:
Do you have the incompressible WALE model? if you have ,can you send it to me? I will very gald to share experience with you. Thanks for all the help. cheers jiujiumin |
||
March 30, 2016, 21:50 |
dynLocalAverageSmagorinsky : 2.3.x
|
#43 |
Member
Join Date: Feb 2014
Posts: 63
Rep Power: 12 |
Hi all,
I tried to use dynLocalAverageSmagorinsky using OF-2.3.x I managed to do some necessary modifications and compiled the library file without a problem. Changed the LESProperties file and controlDict file. However I run this with rhoPimpleFoam tutorial case pitzDaily , I run into a problem that ends with a Floating point exception (core dumped) Code:
Reading field U Reading/calculating face flux field phi Creating turbulence model Selecting turbulence model type LESModel Selecting LES turbulence model dynLocalAverageSmagorinsky Selecting LES delta type cubeRootVol --> FOAM Warning : From function cubeRootVolDelta::calcDelta() in file cubeRootVolDelta/cubeRootVolDelta.C at line 52 Case is 2D, LES is not strictly applicable #0 Foam::error::printStack(Foam::Ostream&) in "/home/asela/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/home/asela/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) in "/home/asela/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #4 void Foam::divide<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/home/asela/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libfluidThermophysicalModels.so" #5 at ~/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricFieldReuseFunctions.H:368 #6 Foam::compressible::LESModels::dynLocalAverageSmagorinsky::cD_(Foam::GeometricField<Foam::SymmTensor<double>, Foam::fvPatchField, Foam::volMesh> const&) const at ~/OpenFOAM/asela-2.3.x/src/turbulenceModels/compressible/LES/dynLocalAverageSmagorinsky/dynLocalAverageSmagorinsky.C:78 #7 Foam::compressible::LESModels::dynLocalAverageSmagorinsky::updateSubGridScaleFields(Foam::GeometricField<Foam::SymmTensor<double>, Foam::fvPatchField, Foam::volMesh> const&) at ~/OpenFOAM/asela-2.3.x/src/turbulenceModels/compressible/LES/dynLocalAverageSmagorinsky/dynLocalAverageSmagorinsky.C:49 #8 Foam::compressible::LESModels::dynLocalAverageSmagorinsky::dynLocalAverageSmagorinsky(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::fluidThermo const&, Foam::word const&, Foam::word const&) at ~/OpenFOAM/asela-2.3.x/src/turbulenceModels/compressible/LES/dynLocalAverageSmagorinsky/dynLocalAverageSmagorinsky.C:146 #9 Foam::compressible::LESModel::adddictionaryConstructorToTable<Foam::compressible::LESModels::dynLocalAverageSmagorinsky>::New(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::fluidThermo const&, Foam::word const&) at ~/OpenFOAM/asela-2.3.x/src/turbulenceModels/compressible/LES/lnInclude/LESModel.H:117 #10 Foam::compressible::LESModel::New(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::fluidThermo const&, Foam::word const&) in "/home/asela/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libcompressibleLESModels.so" #11 Foam::compressible::turbulenceModel::addturbulenceModelConstructorToTable<Foam::compressible::LESModel>::NewturbulenceModel(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::fluidThermo const&, Foam::word const&) in "/home/asela/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libcompressibleLESModels.so" #12 Foam::compressible::turbulenceModel::New(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::fluidThermo const&, Foam::word const&) in "/home/asela/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so" #13 in "/home/asela/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/rhoPimpleFoam" #14 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #15 in "/home/asela/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/rhoPimpleFoam" If anyone of you have got into this trouble and found a way out please let me know how did you solve this. Thanks |
|
March 31, 2016, 15:24 |
|
#44 |
Member
|
Hi,
I just looked at the initial U file. Could you change the value to a non zero value and run the case and check if there is a floating point issue. Also install a debug version of the code to check which variable is getting diverged. Cheers! |
|
April 2, 2016, 07:12 |
dynLocalAverageSmagorinsky : 2.3.x
|
#45 |
Member
Join Date: Feb 2014
Posts: 63
Rep Power: 12 |
Hi Krishna,
Thanks for your response. I changed the initial velocity file but it did not solve the problem. I am not an expert in debugging OpenFOAM however I understand the problem comes at the step where turbulenceModel is constructed. However many people have used this model from this thread without a problem. Here with I have attached my turbulenceModel with Make files for you to regenerate the problem on 2.3.x on debug mode, and the pitzDaily case to run. If you have spare time please have a look at this. It compiles without any warnings or errors This was the debug output at crash. Code:
Create mesh for time = 0 PIMPLE: no residual control data found. Calculations will employ 3 corrector loops Reading thermophysical properties Selecting thermodynamics package { type hePsiThermo; mixture pureMixture; transport const; thermo eConst; equationOfState perfectGas; specie specie; energy sensibleInternalEnergy; } Reading field U Reading/calculating face flux field phi Creating turbulence model Selecting turbulence model type LESModel Selecting LES turbulence model dynLocalAverageSmagorinsky Selecting LES delta type cubeRootVol --> FOAM Warning : From function cubeRootVolDelta::calcDelta() in file cubeRootVolDelta/cubeRootVolDelta.C at line 52 Case is 2D, LES is not strictly applicable Program received signal SIGFPE, Arithmetic exception. 0x00007ffff41cea86 in Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) () from /home/asela/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so Last edited by Uyan; April 2, 2016 at 07:13. Reason: attach files |
|
April 2, 2016, 08:54 |
dynLocalAverageSmagorinsky : 2.3.x
|
#46 |
Member
Join Date: Feb 2014
Posts: 63
Rep Power: 12 |
Hi Krishnan,
Looks like now the problem is solved , by setting Code:
unset FOAM_SIGFPE |
|
April 3, 2016, 07:58 |
shock wave
|
#47 |
New Member
kalpa lakmal
Join Date: Apr 2016
Location: srilanka
Posts: 3
Rep Power: 10 |
when change the U in the 0 file for the rhoCentralForm for the oblique shock on the wedge, mach numer also will change according that velocity how it is happening pz explain it to me
|
|
April 4, 2016, 16:59 |
|
#48 |
Member
|
It s good that solver is going through after resetting the flag. I dont know what that flag does. To install Debug version use the following link:
http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html Also to know more about debugging check the following links: http://www.tfd.chalmers.se/~hani/kur.../debugging.pdf https://openfoamwiki.net/index.php/HowTo_debugging I don't have a 2.3.x version to check the code. |
|
May 10, 2016, 07:20 |
|
#49 | |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 11 |
Quote:
I have something confused about you code. In Martin's paper, Tau_kk = C_I * alpha . As we know, Tau_kk = 2 K_sgs. But in your code, K_sgs = C_I * alpha /rho. I think it should be K_sgs = 0.5 * C_I * alpha /rho. Maybe you transferred "0.5" to other place and I didn't see. |
||
January 27, 2020, 07:09 |
SGS Kinetic Energy Calculation
|
#50 | |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 35
Rep Power: 9 |
Quote:
I also believe that Code:
k_ = 0.5*Taukk.
__________________
-- 🃏Maximus🃏 Last edited by godfatherBond; January 28, 2020 at 01:54. |
||
January 27, 2020, 23:03 |
Updated Compressible Dynamic Smagorinksy (v4, v5)
|
#51 |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 35
Rep Power: 9 |
If anybody missed the compressible dynamic Smagorinsky model in the newer versions of OF (v4, v5,...), I am attaching a working version. The code is very well commented, hence it is easier to understand.
Also, some definitions (like filtered strain rate,..etc) are Favre Filtered to be consistent with the literature. Please let me know you comments.
__________________
-- 🃏Maximus🃏 Last edited by godfatherBond; January 28, 2020 at 05:22. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LES Compressible Smagorinsky Model | iyer_arvind | OpenFOAM Running, Solving & CFD | 26 | September 9, 2014 07:22 |
Low-Re turbulence model for compressible flow | volker | OpenFOAM Programming & Development | 0 | March 15, 2010 10:20 |
LES and combustion model | Margherita Cadorin | CFX | 0 | October 29, 2008 05:24 |
Problem calculate Y in compressible turbulence model | luca | OpenFOAM Running, Solving & CFD | 5 | June 1, 2006 05:53 |
simulation of RSM in compressible mixing layer | lars | Main CFD Forum | 0 | February 19, 2004 22:40 |