|
[Sponsors] |
Improved implementation of dynamic Smagorinsky |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 23, 2011, 05:42 |
Warning
|
#21 |
Member
|
Hi Alberto,
thanks for sharing your corrected dynamicSmagorinsky. I have complied it without any problem. but when I want to decompose my mesh, the below warning wolud be appear( I am using OF-1.6.x and Fedora-12): --> FOAM Warning : From function dlLibraryTable:pen(const fileName& functionLibName) in file db/dlLibraryTable/dlLibraryTable.C at line 79 could not load /home/Yashar/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libdynamicSmagorinskyModel.so: undefined symbol: _ZNK4Foam14incompressible9LESModels I would appreciate if you could help me to solve it. |
|
January 23, 2011, 14:11 |
|
#22 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Hi Yashfar,
nothing to worry about. You can safely ignore the warning. It happens sometime when using libraries through controlDict. Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
January 29, 2011, 13:11 |
|
#23 |
Member
|
||
February 9, 2011, 05:17 |
|
#24 |
Member
|
Hi Alberto,
I would appreciate if you could answer me that " how could this model be used in compressible solver?" Best regard, |
|
February 9, 2011, 05:22 |
|
#25 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Hi Yashar,
it cannot. The implementation I released works for incompressible solvers. For the compressible version you need to implement a compressible dynamic Smagorinsky model (see for example Piomelli's papers to have an idea). Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
February 17, 2011, 09:16 |
non-root compilation of dynamicSmagorinsky
|
#26 |
Member
Bernhard Grieser
Join Date: Mar 2010
Location: Zurich, Switzerland
Posts: 30
Rep Power: 16 |
Alberto,
thank you very much for your efforts on implementing a truly dynamic Smagorinsky model! I realized the flaw of the old implementation a few weeks ago and I am more than happy that someone already took care of the issue. I'm running my simulations as a non-root user on my university's HP XC3000, where OpenFOAM 1.7 is pre-installed. Logically it produces an error when compiling with wmake libso: Code:
... /usr/bin/ld: cannot open output file /software/all/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libdynamicSmagorinskyModel.so: Permission denied collect2: ld returned 1 exit status make: *** [/software/all/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libdynamicSmagorinskyModel.so] Error 1 Best regards, Bernhard |
|
February 17, 2011, 09:37 |
non-root compilation of dynamicSmagorinsky
|
#27 |
Member
Bernhard Grieser
Join Date: Mar 2010
Location: Zurich, Switzerland
Posts: 30
Rep Power: 16 |
ok, problem solved. One only has to change the content of ./Make/files:
I replaced FOAM_LIBBIN with FOAM_USER_LIBBIN |
|
February 17, 2011, 15:51 |
|
#28 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Good the code is useful to someone :-)
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
April 1, 2011, 01:47 |
Thanks!
|
#29 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
Dear Alberto,
Many thanks for your contribution! This is just what I have been looking for... kind regards, James |
|
April 1, 2011, 03:41 |
|
#30 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Happy to share!
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
June 11, 2011, 23:06 |
|
#31 |
New Member
Perry L. Johnson
Join Date: Feb 2011
Location: Orlando, FL, USA
Posts: 17
Rep Power: 15 |
Alberto,
Just trying to understand your code (and OpenFOAM coding in general), not being picky. If I have understood your code correctly, by changing the average(LLMM/MMMM) to fvc::average(LLMM/MMMM), you have averaged over the faces belonging to the cells, which are interpolated from their respective cells. So essentially, you have applied the box filter (or simple filter as OpenFOAM calls it) and could accomplish the same thing using filter_(LLMM/MMMM) assuming the user chooses the simple filter. This would also allow use of the other filters to perform this averaging at the choice of the user. Please correct me if I have misunderstood anything. FYI, the fluent manual states that it averages locally using the test filter, which appears to be what you have done as well (fluent also uses box filter). Regards, Perry |
|
June 11, 2011, 23:32 |
|
#32 | ||
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
Quote:
Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|||
June 11, 2011, 23:41 |
|
#33 | |
New Member
Perry L. Johnson
Join Date: Feb 2011
Location: Orlando, FL, USA
Posts: 17
Rep Power: 15 |
Quote:
Perry |
||
June 12, 2011, 00:07 |
|
#34 | ||
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
Quote:
Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|||
July 5, 2011, 10:57 |
|
#35 |
New Member
Kris
Join Date: Nov 2010
Posts: 21
Rep Power: 15 |
Hi,
I am having some trouble compiling this on OpenFOAM 2.0.x. I get the following error: Code:
dynLocalAverageSmagorinsky.C:40: instantiated from here /home/kris/OpenFOAM/OpenFOAM-2.0.x/src/turbulenceModels/incompressible/LES/lnInclude/LESModel.H:115: error: no matching function for call to ‘Foam::incompressible::LESModels::dynLocalAverageSmagorinsky::dynLocalAverageSmagorinsky(const Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>&, const Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&, Foam::transportModel&, const Foam::word&)’ dynLocalAverageSmagorinsky.H:130: note: candidates are: Foam::incompressible::LESModels::dynLocalAverageSmagorinsky::dynLocalAverageSmagorinsky(const Foam::volVectorField&, const Foam::surfaceScalarField&, Foam::transportModel&) dynLocalAverageSmagorinsky.H:118: note: Foam::incompressible::LESModels::dynLocalAverageSmagorinsky::dynLocalAverageSmagorinsky(const Foam::incompressible::LESModels::dynLocalAverageSmagorinsky&) make: *** [Make/linux64GccDPOpt/dynLocalAverageSmagorinsky.o] Error 1 Kris |
|
July 5, 2011, 11:04 |
|
#36 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
This was released by Alberto this morning:
https://github.com/AlbertoPa/dynamicSmagorinsky |
|
July 5, 2011, 12:48 |
|
#37 |
Member
Join Date: Oct 2010
Location: Stuttgart
Posts: 35
Rep Power: 16 |
hi alberto,
i'm using dynamicSmagorinsky for a LES in parallel processing. i have this message. the calculation is running but i'm concerned because of this warning. Code:
FOAM Warning : From function dlLibraryTable::open(const fileName& functionLibName) in file db/dlLibraryTable/dlLibraryTable.C at line 78 could not load /home/stss8/OpenFOAM/stss8-1.7.x/lib/linux64GccDPOpt/libdynamicSmagorinskyModel.so: undefined symbol: _ZNK4Foam14incompressible9LESModels11GenEddyVisc1BEv best regards grandgo |
|
July 5, 2011, 13:04 |
|
#38 |
New Member
Perry L. Johnson
Join Date: Feb 2011
Location: Orlando, FL, USA
Posts: 17
Rep Power: 15 |
grandgo,
I think your question is posed and answered in posts 21 and 22 respectively. Perry |
|
July 5, 2011, 13:34 |
|
#39 |
Member
Join Date: Oct 2010
Location: Stuttgart
Posts: 35
Rep Power: 16 |
||
July 5, 2011, 15:22 |
|
#40 | |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
If you need both, take a look at the README. However I am not going to update the version for 1.7.x in case bugs are found. P.S. Notice that OF 2.0.x comes with the dynLagrangian model, which uses Lagrangian averaging to find the dynamic coefficient. It is a more refined model than the traditional dynamic Smagorinsky, so it might be worth considering it too (the reference is in the header file). Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Smagorinsky Dynamic Cosant in UDF | Paolo Lampitella | FLUENT | 1 | June 17, 2009 04:40 |
Dynamic Smagorinsky LES | Lourival | FLUENT | 0 | April 14, 2006 14:48 |
Dynamic Smagorinsky Model | Andrew | Main CFD Forum | 1 | November 30, 2004 01:52 |
Reply to Tim Re Dynamic Smagorinsky model | Ajay S. Parihar | Main CFD Forum | 9 | June 2, 2002 17:24 |
Dynamic Smagorinsky model | Tim | Main CFD Forum | 7 | May 29, 2002 08:37 |