Hello everyone,
Trying to improve my case I implemented the following changes in fvSchemes: ------ ddtSchemes { default backward; } gradSchemes { default Gauss linear; grad(p) Gauss linear; grad(U) Gauss linear; } divSchemes { default none; div(phi,U) Gauss linearUpwindV grad(U); div(phi,k) Gauss upwind; div(phi,B) Gauss limitedLinear 1; div(phi,nuTilda) Gauss limitedLinear 1; div(B) Gauss linear; div((nuEff*dev(T(grad(U))))) Gauss linear; } laplacianSchemes { default none; laplacian(nuEff,U) Gauss linear limited 0.333; laplacian((1|A(U)),p) Gauss linear limited 0.333; laplacian(DkEff,k) Gauss linear limited 0.333; laplacian(DBEff,B) Gauss linear limited 0.333; laplacian(DnuTildaEff,nuTilda) Gauss linear limited 0.333; } interpolationSchemes { default linear; interpolate(U) linear; } snGradSchemes { default limited 0.333; } fluxRequired { default no; p ; } ----------------------- I tried all variants of OneEqEddy LES model (cubeRootVol, vanDriest, smooth) with the above corrections. The solution diverges after 100 time steps. Then i made some change: ----- gradSchemes { default cellLimited Gauss linear 1; grad(p) cellLimited Gauss linear 1; grad(U) cellLimited Gauss linear 1; } divSchemes { default none; div(phi,U) Gauss filteredLinear2V 0.5 0; div(phi,k) Gauss linearUpwind grad(k); div(phi,B) Gauss limitedLinear 1; div(phi,nuTilda) Gauss limitedLinear 1; div(B) Gauss linear; div((nuEff*dev(T(grad(U))))) Gauss linear; } ------ Other schemes remain the same. The solution blows up even faster (arond 30 time steps). Could anybody tell what the problem is? Kind regards, Achinta |
Hi Rob,
Please let me know what specific information you need (except for the mesh, which is confidential :) ). Kind regards, Achinta |
Hi,
I´m also interested on this topic? Did anyone got the answer to Roland´s question? |
The logfile can give some information. Can you show part of the logfile, where the divergence occurs?
|
Quote:
|
Hi all,
Am new here. I am looking to implement a 2-part eddy viscosity model as outlined by Sullivan et al (1994) www.mmm.ucar.edu/people/sullivan/talks/papers/sgs.pdf Currently, I am thinking of using pimpleFoam solver and have been looking at modifying the oneEqEddy LES model, changing the divDevbeff in GenEddyVisc.C to the appropriate formulation of tau_ij. However, I am running into several issues: 1. How to get the homogeneous averages for <S_ij>, <u>, <v> during runTime as I need these values for each time-step 2. I am still unsure if using pimpleFoam is ideal, even if I want to neglect the effects of temperature and hence the buoyancy effect Anyway, I would appreciate any pointers from you guys if any of you have attempted to do this implementation. Thanks a lot. |
Quote:
|
Quote:
|
Quote:
i copied and do wmake your code above. my case is rectangular(3d). i want to : 1: write the E-K in one dimentional in space 2: write the E-K in one dimentional in time 3: write the E-K in 3 dimentional in space 4: write the E-K in 3 dimentional in time how can i do it? thank u in advance sir lohrasbi2013@gmail.com |
Hi Lohrasbi,
for the E-K in space you can have a look at how it is done in the dnsFoam solver. In principle you could use: Code:
#include "Kmesh.H" |
Hi all,
I am using this mapped value of fields from a setup to simulate flow around an airfoil, now for this particular case, when i use RANS i map the Nut field because it is non-uniform on the top and bottom of the airfoil, so to get accurate results i have to map it. now when i want to perform LES ? what do i do, do i map the nuSgs field ? if so how because I am mapping from a RANS simulation and it does not have nuSgs field or do i just map the Nut and change its name to nuSgs and the dimensions !!! ? does it work like that ? do they have any similar relation Thanks for your time, Regards, Hasan K.J |
Greetings to all!
@Hasan: AFAIK, when LES is involved, what usually is done is to first run the simulation with a steady-state solver with LES; then run a transient solver with LES as well. One such tutorial in OpenFOAM that demonstrates this, is this one: "incompressible/pisoFoam/les/motorBike" If you need to pass RAS fields to LES ... either you'll need an utility that calculates an estimate from the RAS fields to LES fields, or you'll have to create one yourself. Have a look into this utility "applications/utilities/postProcessing/turbulence/createTurbulenceFields" - it's meant for creating RAS turbulence fields, but perhaps you can create a similar utility for LES... because I'm not aware of any existing already... Wait, apparently someone already created the utility "createTurbulenceFieldsLES": http://www.cfd-online.com/Forums/ope...ields-les.html Beyond this, the turbulence fields are usually calculated from the pressure and velocity fields, using the initial turbulence fields only as a reference. Therefore, you don't need to specifically map the LES related turbulence fields... you just need to give non-ridiculous initial values for the turbulence fields and after some iterations it should be able to sort things out on its own. Best regards, Bruno edit: conversation on the related topic to Hasan's case is here: http://www.cfd-online.com/Forums/ope...-openfoam.html |
Quote:
The y+ is smaller than 2 in my case which is a LES simulation. I set k a small value (1e-5) at the inlet boundary. How should I set k at the wall boundary? Best regards, Peter |
Quote:
|
Quote:
|
Hi everyone,
I know this thread has not been active for a while but I guess this is the most related topic so I'm going to post here. I'm running the channel flow LES which is now under pimpleFoam. The tutorial case runs well but my trouble is that I need the structures which are being compromised in the current domain as mentioned in Eugene's thesis. When I extend the length of the domain (and consequently the grid numbers) the profiles are not valid any more. Even though the bulk velocity, CFL, and Retaw and everything else should be the same. I think is is coming from the initial conditions. Does anyone else has experience with this? |
Quote:
I am not sure I understood what the problem is, what do you mean by "the profiles are not valid any more"? Your results don't compare well with dns? For the initial conditions, you can use the perturbU https://github.com/wyldckat/perturbU Some other tips based on my experience.
|
What do you mean extend the length of domain? If you extend it in streamwise direction, it should be fine, for other directions it fails if I remember the case correctly.
|
Quote:
Quote:
|
All times are GMT -4. The time now is 03:27. |