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

Creation of boundaryData for turbulentDigitalFilterInlet

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2020, 03:49
Default Creation of boundaryData for turbulentDigitalFilterInlet
  #1
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
I am looking for a way to create patch-profile input for the turbulentDigitalFilterInlet inlet type as mentioned here:

https://www.openfoam.com/documentati...-dfm-fsm-usage

I understand that I can create inlet profiles of the mean velocity and Reynolds stresses. I have the values of the profiles in a csv format but I am not sure how the create the proper files in constant/boundaryData/<patch Name/...
Bazinga is offline   Reply With Quote

Old   July 15, 2021, 08:20
Default
  #2
Member
 
Tom Lauriks
Join Date: Apr 2020
Posts: 34
Rep Power: 5
Tom Lauriks is on a distinguished road
Hi,


to my understanding, there should be in the patch name dir, a points file. It should contain the coordinates, e.g.:
Code:
(
( -1.5 0 0.0 )
( -1.5 0 0.0015102 )
...
( -1.5 0 0.119958 )
( -1.5 0 0.123124 )
)
I think that the coordinates can be any values, but of course, they do have to fall within your domain. I've used python and linux bash to create scripts that convert my coordinates into a file with the above shown format. Note that these coordinates describe a profile across the height at x=-1.5 and y=0.

Then in patch name/0, there should be a file containing the reynolds stresses - R - (but I believe that you can also define them as uniform across the patch) and a file containing the velocity - UMean - at the points corresponding to the coordinates described in points, e.g. for R I have:
Code:
(
( 0.000000e+00 0.000000e+00 -0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 )
( 7.803253e-02 0.000000e+00 -1.512301e-02 5.737909e-02 0.000000e+00 2.234312e-02 )
...
( 6.004497e-01 0.000000e+00 -1.293823e-01 3.694919e-01 0.000000e+00 2.414780e-01 )
( 5.990021e-01 0.000000e+00 -1.301567e-01 3.693150e-01 0.000000e+00 2.433442e-01 )
)
where you have to follow the format of a symmetric tensor in openfoam (see description here https://www.openfoam.com/documentati...ymmTensor.html). Also the for the R and UMean file, I made scripts in python and linux bash to convert the data that I have, into the format with the brackets.
Tom Lauriks is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
generation of boundaryData files for timeVaryingMappedFixedValue MartinEB OpenFOAM Programming & Development 5 June 3, 2020 20:11
Creating boundaryData folder for timeVaryingMappedFixedValue boundary condition Sid! OpenFOAM Running, Solving & CFD 2 October 4, 2017 02:44
Creation of a plane surface with the TUI EmiS FLUENT 2 August 31, 2016 09:11
problem with surface creation in ICEM from multiple curves dialolema ANSYS Meshing & Geometry 2 October 27, 2014 14:14
about rate of species creation and depletion shao FLUENT 1 July 8, 2002 16:21


All times are GMT -4. The time now is 18:38.