CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Inlet BC for LES

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2011, 12:48
Default
  #81
Member
 
Join Date: Oct 2010
Location: Stuttgart
Posts: 35
Rep Power: 15
grandgo is on a distinguished road
hello francois,

thanks a lot for you support, i will try what you've suggested!

may i ask you for another favour? could you please take a look into my post "Adding a new member function in src/../turbulenceModel" ?

you could help me there big time.....

best regards
grandgo
grandgo is offline   Reply With Quote

Old   April 7, 2011, 12:42
Default About mean value calculation for LES solverrs
  #82
Member
 
N. A.
Join Date: May 2010
Posts: 64
Rep Power: 15
N. A. is on a distinguished road
Hey Folks,

I am wondering if in OF1.7, the way we extact mean values is by specifying following in controlDict file:
U
{
mean on;
prime2Mean on;
base time;
}

I want to confirm if this is:
Umean = time average of U at each cell ....(1)

or
Umean = time average of (U+ Uprime); ....(2)
where Uprime is the sub-grid scale part.

I want to get a average value using 2nd option to compare with time-averaged experimental data.

Can comeone confirm what is OF1.7 doing with this mean function in controldict?

If it is not doing 2nd option, how can I extract the mean using the second equation.

Thank you,
Nir
N. A. is offline   Reply With Quote

Old   May 16, 2011, 04:55
Default
  #83
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Usgs or Uprime as you call it is an isotropic vector, so averaging it would result in a mean field of zero.
eugene is offline   Reply With Quote

Old   September 23, 2011, 02:41
Default
  #84
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Quote:
Originally Posted by panda60 View Post
Dear Fransje,

I am sorry, I haven't explain clearly.
I run the case in the directory "tutorials/........./incompressible/les/pitzDirectMapped".
I have tried 3 kinds of inflow conditions:
1. directMapped (nearestCell).
2. directMapped (nearestFace).
3. directMappedVelocityFlux (nearestFace).

I use the solver "pisoFoam".The following is the detailed information.
Hi,

Could you explain detailed, what else are the differences between directMappedVelocityFlux and directMapped, nearestCell and nearestFace, setAverage=true and setAverage=false ? In addition, offset is just a distance but not a coordinate value from the inlet plane, right?
sandy is offline   Reply With Quote

Old   October 1, 2011, 22:49
Default
  #85
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Hi Tabor,

In your paper(Inlet conditions for LES using mapping and feedback control), you did not refer to "directMapped" method. Could you explain what are differences between directMapped with directMappedVelocityFlux ?
sandy is offline   Reply With Quote

Old   October 4, 2011, 14:38
Question Fluctuation with Profile
  #86
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
Hi Everyone,
I was reading about LES turbulentInlet boundary condition. It looks like this boundary condition does not have ability to read profile for U_mean and also U_rms, which can be used as a fluctuation scales. But it uses flat profile for both.
Besides, I know there's a timeVaryingMappedFixedValue field that reads profiles for boundary conditions.
My question is is there any boundary condition that reads profiles for mean velocity and their fluctuation scale (U_rms) and uses them to make a turbulent inlet for U? and If there's none, how can I make one? I know some C++ and some basics of openfoam, but it gets hard when it comes to openFOAM source code, as it has complicated structure.
__________________
SAHM
sahm is offline   Reply With Quote

Old   December 29, 2011, 10:41
Default LES swirl inlet conditions
  #87
New Member
 
Vitaly
Join Date: Sep 2010
Posts: 6
Rep Power: 15
vitvit is on a distinguished road
Hello,
I want to run a combustion simulation with swirling inlet conditions.
How do I define the initial pertubations?
As I understand it,directMapped is not suited for this purpose.
I know that Dr.Tabor worked on this subject with his Phd student (now Doctor).
Did someone implemented this method?
What should I do?
Did someone used Synthesised turbulence methods in swirl flows? (I'd rather to use the Mapped method, but beggars can't be choosers...)

Thank You!
vitvit is offline   Reply With Quote

Old   December 29, 2011, 14:38
Default dual fuel combustion
  #88
New Member
 
saeed divrakhsh
Join Date: Jul 2010
Posts: 8
Rep Power: 15
valikiut is on a distinguished road
I want to simulate dual fuel diesel engine with OpenFOAM. can I simulate this with dieselEngineFoam? If not, which solver I must use?
If I can use dieselEngineFoam, can I use (CH4) mass fraction in initial condition such as O2 and N2?

Thanks.
Best Regards,

valikiut is offline   Reply With Quote

Old   January 12, 2012, 06:24
Default Under resolved LES
  #89
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
Hello

I had the problem of under resolved solution of my LES simulation of cavitating hydrofoil flow. Is there any remedy for overcoming under resolved solutions? Is it filtering?

Thanks
ehsan is offline   Reply With Quote

Old   April 23, 2012, 15:29
Default
  #90
Member
 
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 16
gascortado is on a distinguished road
Hi everyone. I am really desperate trying to find a way out of this problem using directmappedpatch. Please take a look. Any suggestion will be appreciated. Thanks

I'm trying to model a fluid structure interaction using LES. I generate the turbulence at the inlet implementing a recycling technique (similar to that of Lund et all) using directMapped BC. Now, my mesh has to be able to deform, however when I run my case I get:

Create time

Create dynamic mesh for time = 0

Selecting dynamicFvMesh dynamicMotionSolverFvMesh
Selecting motion solver: laplaceFaceDecomposition


--> FOAM FATAL ERROR:
Unknown faceTetPolyPatchFaceDecomp type directMappedPatch. Valid faceTetPolyPatchFaceDecomp types are :

7
(
wall
processor
wedge
patch
empty
ggi
symmetryPlane
)


From function faceTetPolyPatchFaceDecomp::New(const polyPatch&, const tetPolyBoundaryMeshFaceDecomp&)
in file tetPolyMeshFaceDecomp/tetPolyPatches/faceTetPolyPatch/newFaceTetPolyPatchFaceDecomp.C at line 59.

FOAM exiting

Does this mean that deformable meshes cannot be used with DirectMapped Bc's? Do I have to set three different domains and link them together? (one recycling domain, one fluid domain with deformable mesh and one solid domain). Is there a way to use directmappedpatch with deformable meshes???

I will appreciate any help or suggestions. Thanks
gascortado is offline   Reply With Quote

Old   May 8, 2012, 12:02
Default
  #91
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
There is no reason why a direct mapped condition would be a problem: this is to do with the way constrained patches are created on fields. Some minor coding required, ie. you need a simple tet-fem wrapper for the direct mapped patch and fields.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   May 8, 2012, 13:04
Default
  #92
Member
 
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 16
gascortado is on a distinguished road
I really, really appreciate you reply.

I'm glad to hear that directMappedPatch should not be a problem, however, would you be kind enough to be a little more specify about
Quote:
you need a simple tet-fem wrapper for the direct mapped patch and fields
Pardon my C++ ignorance in this case but, what do you mean by "tet-fem wrapper"? And in which file should I look into? Maybe into newFaceTetPolyPatchFaceDecomp.C?

Again I will be very grateful if you can give me any other hint. Thanks again
gascortado is offline   Reply With Quote

Old   May 14, 2012, 16:04
Default
  #93
Member
 
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 16
gascortado is on a distinguished road
@ Bruno,

Here I uploaded my solver and my case. The meshes are greatly simplified in order to make the folder small enough to be uploadable. The case as it is generates the error mentioned above. Please let me know if are able to run it. Thanks a lot

The file my_PisoFSI is the solver and the other one is the case.
Attached Files
File Type: gz my_pisoFSI_bruno.tar.gz (22.3 KB, 16 views)
File Type: gz workstationMappedBruno.tar.gz (27.0 KB, 17 views)
gascortado is offline   Reply With Quote

Old   May 15, 2012, 16:57
Default
  #94
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Santiago: I'm not able to run you case because I get the following error when running changeDictionary in the "fluid" folder:
Code:
Create mesh for time = 0



--> FOAM FATAL ERROR: 
Did not find sample (0.5 0.075 0.095) on any processor of region region0

    From function directMappedPatchBase::findSamples(const pointField&, labelList&, labelList&, pointField&)
    in file directMapped/directMappedPolyPatch/directMappedPatchBase.C at line 373.

FOAM aborting
I got that error because I used the Allrun script you provided in the case "workstationMappedBruno".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 15, 2012, 20:48
Default
  #95
Member
 
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 16
gascortado is on a distinguished road
Hi Bruno.

Thats strange. I run it here and i get

Quote:
Create time

Create mesh for time = 0

Read dictionary changeDictionaryDict with replacements for dictionaries
1
(
boundary
)

Replacing entries in dictionary boundary
Special handling of boundary as polyMesh/boundary file.
Loaded dictionary boundary with entries
8
(
plateFixed
plateFluid
right
left
outlet
upperWall
lowerWall
inlet
)

Merging entries from
1
(
inlet
)

fieldDict:
{
plateFixed
{
type wall;
nFaces 5;
startFace 64;
}
plateFluid
{
type wall;
nFaces 5;
startFace 69;
}
right
{
type wall;
nFaces 12;
startFace 74;
}
left
{
type wall;
nFaces 12;
startFace 86;
}
outlet
{
type patch;
nFaces 9;
startFace 98;
}
upperWall
{
type patch;
nFaces 12;
startFace 107;
}
lowerWall
{
type wall;
nFaces 12;
startFace 119;
}
inlet
{
type directMappedPatch;
nFaces 9;
startFace 131;
offset ( 0.5 0 0 );
sampleRegion region0;
sampleMode nearestCell;
samplePatch none;
}
}

Writing modified fieldDict boundary

End
Please replace the changeDictionaryDict with the one attached. (un-tar first). This file must be placed in "worstationMappedBruno\fluid\system". I just changed the sample location to 0.4 instead of 0.5. At 0.5 the fluid mesh has a void and that maybe causing an error. Please let me know the outcome. Thanks a lot for trying
Attached Files
File Type: gz changeDictionaryDict.tar.gz (505 Bytes, 12 views)
gascortado is offline   Reply With Quote

Old   May 17, 2012, 18:24
Default
  #96
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Santiago,

OK, I've made some progress. Using the old 1.6-ext deb package from the CAE-Team on Ubuntu 10.04, along with the swak4Foam also available with it, I've managed to reproduce your error.

I've also started working on an independent add-on library(ies) (one for faces and another for cells, wrapped into a single source code folder), which I've attached the code for it.
Nonetheless, it's not building yet. It did build with the sample folder for the "timeVarying*" BC, but I picked a bad example, since this one uses a type of data structure different from the "directMapped*" one.

I'm attaching it already just in case someone else wants to step in and help!

The idea is that after the libraries are built and possibly working, they are added to the libs list at the case's "controlDict".

Best regards,
Bruno
Attached Files
File Type: gz tetDirectMapped.tar.gz (7.8 KB, 11 views)
__________________
wyldckat is offline   Reply With Quote

Old   June 17, 2012, 17:11
Default
  #97
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Santiago,

OK, I've made some advances in the research on how to wrap up "directMappedPatch" for tet, but don't have it working yet. It basically boils down to this:
  1. Let's first look at the "wedge" patch. Attached is the previous base preparation, now adapted for reimplementing the "wedge" patch.
  2. The "wedge" is split into 4 major components:
    1. Face wrapper for "wedgePolyPatch":
      Code:
      tetPolyMeshFaceDecomp/tetPolyPatches/constraint/wedge
    2. Cell wrapper for "wedgePolyPatch":
      Code:
      tetPolyMeshCellDecomp/tetPolyPatches/constraint/wedge
    3. Does the element connection:
      Code:
      fields/elementPatchFields/constraint/wedge
    4. Does the point connection:
      Code:
      fields/tetPolyPatchFields/constraint/wedge
  3. "a" and "b" are easy to implement. It should be as simple as adapting for wrapping around "directMappedPolyPatch" ("meshTools/directMapped/directMappedPolyPatch") and replace "wedge" by "directMappedPatch" where needed.
    "a+b" handle the mesh side of business.
  4. "c" and "d" possibly are going to have to be wrappers around:
    • the "genericPolyPatch" ("OpenFOAM/meshes/polyMesh/polyPatches/basic/generic")
    • or "directMappedFixedValue" ("finiteVolume/fields/fvPatchFields/derived/directMappedFixedValue")
    "c+d" seem to handle the field/matrix side of business, and seem more complicated. The reason is because this seems to be where the solution matrices are hooked up between the FVM and FEM portions of the code.
I'm itching to try and figure out how to finish connecting the dots, but that's all the time I have for today. I certainly hope I can scrape some time during this week, but only time will tell

edit: for using the latest 1.6-ext version, I had to change the "changeDictionaryDict" file on the fluid side from "(0.5 0.0 0.0)" to "(0.699 0.0 0.0)".

Best regards,
Bruno
Attached Files
File Type: gz tetDirectMapped_wedge_base.tar.gz (2.7 KB, 14 views)
__________________

Last edited by wyldckat; June 17, 2012 at 17:12. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   June 24, 2012, 14:20
Default
  #98
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Santiago,

Sadly, I'm at the limit of my experience with OpenFOAM source code Attached is what I've got now.

I had to modify the case file "system/controlDict" by adding "libfaceDecompTetDirectMapped.so" to the libs list.

The error I get when running the solver is this:
Code:
--> FOAM FATAL ERROR: 
Attempt to cast type wall to type lduInterface

    From function refCast<To>(From&)
    in file /home/username/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/typeInfo.H at line 115.

FOAM aborting
I had based myself on the "wedge" boundary condition for reference, but sort-of found out that "makeTypePointPatchFieldTypedefs" couldn't be used and had to use "makePointPatchFieldTypedefs".

The other issue was that I couldn't create a proper "directMappedElementPatchFields.C", but I don't know if this is what is missing and/or wrong...

Good luck! Best regards,
Bruno
Attached Files
File Type: gz tetDirectMapped_directMapped_ish.tar.gz (3.2 KB, 10 views)
__________________
wyldckat is offline   Reply With Quote

Old   March 19, 2013, 10:51
Default
  #99
New Member
 
Kanuk
Join Date: Oct 2010
Posts: 28
Rep Power: 15
kanuk is on a distinguished road
Hi Bruno,

Have you had any luck in implementing your direct mapped BC?

I am really trying to implement a cyclic BC with the laplaceFaceDecomposition solver in 1.6-ext. It appears you are on the right track - though I too have limited c++ experience. Regardless, any insight you or anyone else out there has about writing the wrapper, I'd appreciate. I'll post back if I have any luck...

Cheers,
Dave
kanuk is offline   Reply With Quote

Old   March 24, 2013, 12:08
Default
  #100
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi David,

Unfortunately I was not able to figure out how it works and how it can be done
I don't know if Santiago managed to figure out some other solution in the mean time.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
velocity inlet vs pressure inlet cheong FLUENT 6 April 9, 2011 03:07
subsonic inlet or supersonic inlet? mali CFX 0 November 28, 2008 20:57
about inlet bc ivanyao OpenFOAM Running, Solving & CFD 0 November 25, 2008 03:17
reversed flow at velocity inlet / mass flow inlet ib FLUENT 1 March 26, 2007 13:11
How to set smoke inlet speed on inlet Adam FLUENT 0 October 4, 2005 08:18


All times are GMT -4. The time now is 23:16.