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

TimeVaryingMappedFixedValue for Direct Numerical Simulation inlet

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 22, 2010, 14:23
Default TimeVaryingMappedFixedValue for Direct Numerical Simulation inlet
  #1
Senior Member
 
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 17
johndeas is on a distinguished road
Hi,

I want to compute a Direct Numerical Simulation of a turbulent channel flow perturbed by an obstacle. I use two different channels to this end: a turbulent precursor channel with periodic boundary conditions and a fixed mean pressure gradient in which I sample velocity profiles, as portrayed in this schematic (sorry for the French caption, I hope you get the idea). Those profiles are then used as inlet boundary conditions (TimeVaryingMappedFixedValue) of another channel containing my perturbator. From now on, I will call my periodic turbulent channel precur, and the perturbed channel perturb.

To achieve this, I sample the velocity field on a plane, in precur, using a method similar to the one found in http://www.cfd-online.com/Forums/ope...ngplane-3.html, that is, I first define a sampling plane:

Code:
vector direction(1,0,0);
plane pl1(pnt,direction);
cuttingPlane cutPlane(mesh,pl1);
const labelList& cutCells = cutPlane.cells();
word setName("samplingPlane");
cellSet currentSet(mesh,setName,cutCells);
fvMeshSubset subsetter(mesh);
label patchI=-1;
subsetter.setLargeCellSubset(currentSet, patchI, true);
and then export to files the cells centers and velocity vectors value using subsetter.subMesh().C() (at the beginning of the run) and vectorField UFld(subsetter.interpolate(U)) (at each timestep).

The file containing the cell centers is slighty modified: the value of x is changed to coincide with the value of x at the inlet of the perturb.

The U profiles files are reformated from vectorField to vectorAverageField as needed by TimeVaryingMappedFixedValue (the value (0 0 0) is used for the average, as setAverage is disabled when the boundary condition is used) by a script. The rest of the profiles is left unchanged. All the files are then transfered to the directory constant/boundaryData/inlet of the channel with the perturbator.

The main problem is that when I put probes in the sampling plane in the precursor channel and on the inlet patch (manually created by finding the closest cells for the precursor, and face for the inlet, getting its index number and then exporting the value at each timestep), at the same y and z coordinates, I expect to see the same signal, but I don't. Here is the signal in the sampling plane: , and here is the corresponding signal at the inlet condition: . The values are very different: the probe at the precur starts at 1.5, while the probe at the perturb start at nearly 0.135, which corresponds to bulk temperature prescribed in the precur.

If, for a given timestep, I compare the sampled velocity fields in the precursor using Paraview (instead of the sampling method described above), with the field used at the inlet, I observe two very different fields, while expecting the same. On this figure: , the backward profile corresponds to the profile applied by timeVaryingMappedFixedValue, while the profile frontward corresponds to the profile sampled by Paraview at the same time step (after 500 iterations). The inlet profile seems more smooth.

Aside from those problems, the boundary condition seems to be working: here we can see the continuity between the inlet profile and the internal velocity field: . It is just that the turbulent profiles do not correspond to the turbulent profiles used. And I don't know where the one I see at the inlet come from.

I am using OF-1.5, and made tests with the latest 1.5-dev to check if the problems came from outdated sources, but I obtained the same results.

I would like to know if somebody could help me diagnose my problem ?

Regards
johndeas is offline   Reply With Quote

 


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
Numerical Simulation of Gas Metal Arc Welding By CFX PATELAM CFX 0 November 19, 2009 11:24
Inlet shapes for modelling a fan in an inlet duct buzzybee CFX 10 June 11, 2009 20:15
About numerical filtering in direct simulation? leaf Main CFD Forum 0 June 20, 2006 01:57
numerical simulation of sails Jerome JOURNADE Main CFD Forum 6 June 3, 1999 13:30
Solid-Liquid Two Phase Flow Numerical Simulation with the Finite Element Method Qing Hao Main CFD Forum 2 January 8, 1999 23:31


All times are GMT -4. The time now is 05:45.