localBlended
Hi !
I would appreciate some info about the use of localBlended. I know the post Using the localBlended scheme for DES (GO HERE) and the post Sponge layer for outflow BC (GO THERE) but I feel to week to manage alone. I tried grep localBlended . -R from the tutorial folder, with no success... Some help from anybody? I want to run a LES calculation, and I'd like to prevent the vortices (created in a turbulent wake) to "explode" when reaching the outlet. Do you have another solution than 1/ have a very long domain and 2/ use localBlended scheme (with a dissipative linear upwind scheme for U convection) ? Thanks in advance, Julien |
:(
sniff... Nobody to help me... :( |
Piece of code for using the localBlend scheme
Hi Julian,
I know this response is way too late for you. I hope you solved your problem. However, I had a similar problem and I saw your post without an answer. This is how I solved it. In the first 3 steps you have to edit your solver. The next steps are to create the fields itself and use the localBlended scheme 1) Go to your solver and find the file "createFields.H". This reads all the fields from your 0 folder in your simulation. 2) Attach the following piece of code to the "createFields.H" or include it from another H-file. This script reads the blendingfactors for U,k and/or epsilon. The volScalarFields to be read are called UBlend, kBlend and/or epsilon. The script then interpolates these fields to surfaceScalarFields UBlendingFactor, kBlendingFactor and/or epsilonBlendingFactor. A IOobjects called UBlendingFactor is automatically used when the scheme localBlended is used. Code:
//BJN 2015-04-30 extra file to read the volScalarFields for the blendingfactor used for localBlended scheme. For each variable that uses the localBlended scheme, there should be a volScalarField with the blendfactor. This volScalarField can be created by for instance the funkysetfields utility of swak4foam. In this file the volumeScalarFields are interpolated to surfaceScalarFields that are needed for the localBlended scheme. 4) Change your div scheme in the fvSchemes. A value of 1 represents the linear discretisation. A value of 0 the upwind. Code:
divSchemes *note, this is the volScalarField you have to specify. UBlendingFactor is the computed surfaceScalarField that is automatically used by the localBlended scheme 6) Make a input file for the swak4foam utility called funkySetFields. The input file is called: "funkySetFieldsDict". This code shows how to create the three fields. Code:
/*--------------------------------*- C++ -*----------------------------------*\ 8) Run your model with your new solver |
Quote:
first of all thank you so much for your "mini" tutorial about the generation of a "damping" zone using a velocity blending factor. I have a question about the procedure u showed in this post: you have created the blending factors using the funkySetFieldsDict, but this is only an initialization of this factors or these parameters maintain the values you took during the simulation? Thank you for your time. Regars, Vincenzo |
Hi Vincenzo,
I indeed created the blendfactors at the start of my simulation and they are not adjusted during the simulation time. For example for U I created the UBlend using funkysetFields. In the solver this field is interpolated to the surfaceScalarField UBlendingfactor. This is automatically used by the localBlended scheme. Regards, Bas |
Hi Bas...so the blending factor works only when one start the funkySetField application? in this way we have not a permanent damping region... am i wrong?
thank you again Vincenzo |
The blendingfactor works during the whole simulation. So you have a permanent damping region.
I've used the funkysetfields for creating the blend factors, because it was the easiest way to create a field for me. |
This is a really good news!! Thank you so much Bas!
Best Regards Vincenzo |
All times are GMT -4. The time now is 01:00. |