|
[Sponsors] |
April 3, 2014, 14:26 |
|
#21 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 23 |
Hi vut,
Do you mean as boundary condition or initial value? The boundary condition for walls is typically a zeroGradient... Cheers, L |
|
April 4, 2014, 11:46 |
|
#22 |
Member
Join Date: Feb 2014
Posts: 57
Rep Power: 12 |
Dear Lieven,
Thank you for your answer. I am searching now the initial conditions for flm and fmm for: - internalField - inlet - and outlet Is there some formula to estimate it? I have a turbulent inlet with fluctuation scale of 0.02 for x, y and z and a mean flow in z-direction only. Thanks in advance, vut |
|
March 30, 2016, 17:44 |
|
#23 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
Hi,
Since there is no clear example of dynamic Lagrangian LES model in the OpenFOAM tutorials, I attached a case I had to make work. This is for OpenFOAM 3.0.1, Let me know if you have any questions about it. The codes to run it are as follow: Code:
cp -r 0.org 0; blockMesh; perturbUChannel; pimpleFoam; |
|
April 30, 2016, 04:18 |
|
#24 | |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12 |
Quote:
I want to know why you use the "simple filter", in your turbulenceProperties. Because I found "laplace Filter" in the source codes, I guessed the dynLagrangian must be used accompany with "laplace Filter". Actually, I am going to implement the dynamic K-E or dynLagrangian SGS model to another software. But I don't know how to implement the "simple Filter". It seems that implementing laplace Filter is more easier. Could you tell me does the SGS models must be used accompany with particular Filters? For example, dynamicKEqn + simple filter; dynamicLagrangian + laplace Filter. Another question: do you understand the simple Filter? Could you tell me the physical meaning of it? Please forgive my poor English. simple Filter: tmp<volScalarField> filteredField = fvc::surfaceSum ( mesh().magSf()*fvc::interpolate(unFilteredField) )/fvc::surfaceSum(mesh().magSf()) laplace Filter: tmp<volTensorField> filteredField = unFilteredField() + fvc::laplacian(coeff_, unFilteredField()) Thanks, Zhang Yan |
||
October 16, 2016, 16:37 |
|
#25 |
Member
Mirage
Join Date: Jul 2012
Posts: 43
Rep Power: 14 |
Hi Guys,
@Mahdi: I am also intressted to understand the meaning of ""simple filter", in your turbulenceProperties. How did u validate the accuracy of ur solver? I would like to compare my results with a case solved with OF 2.3 and I have to make sure that I am using the same SGS model. How can I make sure that I am using the same coefficient in OF 3.0.1? Thank you . I appreciate any help. Last edited by Mirage; October 16, 2016 at 17:50. |
|
November 25, 2016, 06:37 |
|
#26 |
Member
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10 |
While running dynamicLagrangian model i am getting following error :
--> FOAM FATAL ERROR: incompatible dimensions for operation [flm[0 4 -5 0 0 0 0] ] + [flm[1 1 -5 0 0 0 0] ] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&) in file /mnt/home/SW/CFDSupportFOAM3.0/OpenFOAM-3.0.x/src/finiteVolume/lnInclude/fvMatrix.C at line 1295. FOAM aborting #0 Foam::error:rintStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #2 void Foam::checkMethod<double>(Foam::fvMatrix<double> const&, Foam::fvMatrix<double> const&, char const*) at ??:? #3 Foam::tmp<Foam::fvMatrix<double> > Foam:perator+<double>(Foam::tmp<Foam::fvMatrix<d ouble> > const&, Foam::tmp<Foam::fvMatrix<double> > const&) at ??:? #4 Foam::LESModels::dynamicLagrangian<Foam::EddyDiffu sivity<Foam::ThermalDiffusivity<Foam::Compressible TurbulenceModel<Foam::fluidThermo> > > >::correct() at ??:? #5 ? at ??:? #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #7 ? at ??:? Aborted (core dumped) Can anyone help me ? |
|
November 25, 2016, 07:02 |
|
#27 | |
Member
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10 |
Quote:
--> FOAM FATAL ERROR: incompatible dimensions for operation [flm[0 4 -5 0 0 0 0] ] + [flm[1 1 -5 0 0 0 0] ] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&) in file /mnt/home/SW/CFDSupportFOAM3.0/OpenFOAM-3.0.x/src/finiteVolume/lnInclude/fvMatrix.C at line 1295. FOAM aborting #0 Foam::error:rintStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #2 void Foam::checkMethod<double>(Foam::fvMatrix<double> const&, Foam::fvMatrix<double> const&, char const*) at ??:? #3 Foam::tmp<Foam::fvMatrix<double> > Foam:perator+<double>(Foam::tmp<Foam::fvMatrix<d ouble> > const&, Foam::tmp<Foam::fvMatrix<double> > const&) at ??:? #4 Foam::LESModels::dynamicLagrangian<Foam::EddyDiffu sivity<Foam::ThermalDiffusivity<Foam::Compressible TurbulenceModel<Foam::fluidThermo> > > >::correct() at ??:? #5 ? at ??:? #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #7 ? at ??:? Aborted (core dumped) Can anyone help me ? |
||
November 28, 2016, 03:14 |
|
#28 |
Member
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10 |
hi everyone,
I am trying to use dynamic lagrangian les model but facing following error : --> FOAM FATAL ERROR: incompatible dimensions for operation [flm[0 4 -5 0 0 0 0] ] + [flm[1 1 -5 0 0 0 0] ] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&) in file /mnt/home/SW/CFDSupportFOAM3.0/OpenFOAM-3.0.x/src/finiteVolume/lnInclude/fvMatrix.C at line 1295. FOAM aborting #0 Foam::error:rintStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #2 void Foam::checkMethod<double>(Foam::fvMatrix<double> const&, Foam::fvMatrix<double> const&, char const*) at ??:? #3 Foam::tmp<Foam::fvMatrix<double> > Foam:perator+<double>(Foam::tmp<Foam::fvMatrix<d ouble> > const&, Foam::tmp<Foam::fvMatrix<double> > const&) at ??:? #4 Foam::LESModels::dynamicLagrangian<Foam::EddyDiffu sivity<Foam::ThermalDiffusivity<Foam::Compressible TurbulenceModel<Foam::fluidThermo> > > >::correct() at ??:? #5 ? at ??:? #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #7 ? at ??:? Aborted (core dumped) If anyone can help then it will be great for me. Thanks |
|
February 15, 2017, 11:33 |
wall function
|
#29 |
New Member
bangun
Join Date: Feb 2015
Posts: 16
Rep Power: 11 |
dear all,
Do we have to apply a wall function if our grid resolution near to the wall is quite coarse (let's say y+>11) even if this dynLagrangian model is applied? In the case where wall function is necessary, do we use the standard wall function available in OpenFOAM. Please anyone give your suggestion. |
|
February 15, 2017, 12:26 |
|
#30 | |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
Sorry to reply so late, have been busy past few months and missed the topic.
Q: I want to know why you use the "simple filter", in your turbulenceProperties. A: it's the simplest model and I didn't have to worry about the filter. Q: Could you tell me does the SGS models must be used accompany with particular Filters? A: Theoretically now, the CFD implementation of LES should work with any form of filter or filter width, practically? the best way is to test it. Q: do you understand the simple Filter? Could you tell me the physical meaning of it? A: It's a tophat averaging over the filter length (usually the cell volume). This is the most common filter as it's implied by discretization, if you apply any other filter with bigger width, you are basically getting the effect of both filters. If you're going to use dynamic models then you can choose any form for the second filter as the effect of filter overlay is being considered. Quote:
|
||
February 15, 2017, 12:33 |
|
#31 | |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
Quote:
I solved it in a channel and the results agree well. The case is attached, you can run it. Regarding the coefficients, the model is based on this paper: A Lagrangian dynamic subgrid-scale model of turbulence. (It's still the same on version 1606), so I assume the coefficients won't change as they're based on the paper. |
||
February 15, 2017, 12:33 |
|
#32 | |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
Quote:
|
||
February 15, 2017, 13:05 |
|
#33 |
New Member
bangun
Join Date: Feb 2015
Posts: 16
Rep Power: 11 |
||
February 15, 2017, 13:59 |
|
#34 | |
New Member
bangun
Join Date: Feb 2015
Posts: 16
Rep Power: 11 |
Quote:
In the 0 folder of your test case, you included nut and nuTilda. I tried my model following your test case, and it gave error because nuSgs file is missing in the 0 folder. ( I use OpenFoam v2.3). I tried replacing nut and nuTilda with nuSgs. The simulation well. Which one is actually necessary to include? I guess this model dynamically quantifies the nuSgs (eddy viscosity based on smagorinsky coefficient). Can you please kindly explain this part? Thanks |
||
February 15, 2017, 17:17 |
|
#35 | |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
Quote:
|
||
April 24, 2017, 16:35 |
compressible dynamicLagrangian SGS
|
#36 |
New Member
Zaffar Maradona
Join Date: Nov 2014
Posts: 5
Rep Power: 12 |
Hi, I am trying to use compressible dynamicLagrangian SGS model.
Apparently, “dynamicLagrangian” has been implemented in OpenFOAM version 4.0 for both compressible and incompressible flows. I wonder how the fmm and flm should look like in zero directory and also what are the dimensions of those two quantiles for compressible solver. In addition, have you had any successful experience with compressible “dynamicLagrangian” SGS model? Thanks a lot for all the help and guidance. |
|
April 25, 2017, 02:22 |
|
#37 | |
Member
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10 |
Quote:
Hi Zaffar, I have succesfully tested dynamicLagrangian model in OpenFOAM-3.0.x after little modification which was required for compressible flows. It was running well for incompressible flows but not for compressible flows. So I modified fmm and flm equations (Just put the density inside derivatives). I am attaching flm and fmm files for zero folder please check it, it might be helpful for u. |
||
April 25, 2017, 19:03 |
|
#38 |
New Member
Zaffar Maradona
Join Date: Nov 2014
Posts: 5
Rep Power: 12 |
Thank you for your reply Adlak,
From OF4.0 source, you can see that "rho" variable already implemented in both equations for fmm and flm as: Code:
volScalarField invT ( alpha*rho*(1.0/(theta_.value()*this->delta()))*pow(flm_*fmm_, 1.0/8.0) ); volScalarField LM(L && M); fvScalarMatrix flmEqn ( fvm::ddt(alpha, rho, flm_) + fvm::div(alphaRhoPhi, flm_) == invT*LM - fvm::Sp(invT, flm_) + fvOptions(alpha, rho, flm_) ); flmEqn.relax(); fvOptions.constrain(flmEqn); flmEqn.solve(); fvOptions.correct(flm_); bound(flm_, flm0_); volScalarField MM(M && M); fvScalarMatrix fmmEqn ( fvm::ddt(alpha, rho, fmm_) + fvm::div(alphaRhoPhi, fmm_) == invT*MM - fvm::Sp(invT, fmm_) + fvOptions(alpha, rho, fmm_) ); fmmEqn.relax(); fvOptions.constrain(fmmEqn); fmmEqn.solve(); fvOptions.correct(fmm_); bound(fmm_, fmm0_); correctNut(gradU); } Any comments or suggestions would be greatly appreciated |
|
April 27, 2017, 03:00 |
|
#39 | |
Member
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10 |
Quote:
Hi, I have already installed and checked OF4.0 and OF4.x both but I haven't seen any changes. Please check this file in the installed version on ur system. Also send me the complete folder of dynamicLagrangian turbulence model at adlak@iitk.ac.in |
||
September 23, 2017, 04:41 |
|
#40 | |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
Quote:
I'm getting the same incompatible dimension error. Have you managed to solve it? Thanks Robert |
||
Tags |
dynlagrangian, les, sgs |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
multiphaseInterFoam for RAS turbulence model | chiven | OpenFOAM Bugs | 8 | December 6, 2017 03:08 |
Wrong calculation of nut in the kOmegaSST turbulence model | FelixL | OpenFOAM Bugs | 27 | March 27, 2012 10:02 |
help for different between les model (subgrid-scale model) | liuyuxuan | FLUENT | 1 | October 2, 2009 16:25 |
2 stage axial turbine model convergence issues | sherifkadry | CFX | 2 | September 7, 2009 21:51 |
multi fluid mixture model issue | rystokes | CFX | 3 | August 9, 2009 20:13 |