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

How to use the setDiscreteFields utility?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By kmefun
  • 1 Post By kmefun
  • 2 Post By me.ouda

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2016, 13:07
Default How to use the setDiscreteFields utility?
  #1
New Member
 
Join Date: Oct 2015
Location: Oviedo, Asturias, Espaņa
Posts: 17
Rep Power: 10
pela145 is on a distinguished road
Hello!

I am modelling a steady flow field around a high rise builiding with the standard k-epsilon RANS turbulent model. Now I would like to compare how some different meshes respond to the same inlet conditions. These conditions should be a power law of the atmospheric boundary layer. To implement it, I got a table with several points in the z axis and their correspondant velocities, which have been taken from an actual experiment in a wind tunnel.

I have found out that I can use this data as my inlet conditions by using the utility setDiscreteFields, which some of my reference authors used and also which i have already installed in my computer. However, even though I have looked for some tutorials on this forum and in the wiki of openFoam, I have not found nothing that give the initial idea of knowing how to use it.

That's why I ask now for a parter that can provide me just a bit of the basic information on how to use this utility. The initial steps (which folder creating in my case folder, where to put the setDiscreteFieldsDict file and how to edit it properly,...).

Thanks in advance.
pela145 is offline   Reply With Quote

Old   February 8, 2016, 16:17
Default
  #2
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
Hi,

1. prepare your "setDiscreteFieldsDict" and then copy it into system folder.
2. run setDiscreteFields command

Here is an example show you how to set each entry in setDiscreteFieldsDict.
Attached Files
File Type: gz setDiscreteFieldsDict.tar.gz (4.3 KB, 114 views)
pela145 likes this.

Last edited by kmefun; February 9, 2016 at 09:58.
kmefun is offline   Reply With Quote

Old   February 11, 2016, 11:54
Default
  #3
New Member
 
Join Date: Oct 2015
Location: Oviedo, Asturias, Espaņa
Posts: 17
Rep Power: 10
pela145 is on a distinguished road
Thank you Kaufman for your reply!

I did what you said. However I have one question about the Dict file.

What does direction refers to? I mean, if you already type x, y, z and Ux, Uy, Uz in profile what further information you provide by saying direction "x y or z".

Pelayo
pela145 is offline   Reply With Quote

Old   February 11, 2016, 13:03
Thumbs up
  #4
New Member
 
Join Date: Oct 2015
Location: Oviedo, Asturias, Espaņa
Posts: 17
Rep Power: 10
pela145 is on a distinguished road
Dear Kaufman

Anyway, you have completely solved my problem.

Thank you
pela145 is offline   Reply With Quote

Old   February 11, 2016, 18:38
Default
  #5
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
The direction is optional entry. More detail can be found in source code (setDiscreteFields.C)
pela145 likes this.

Last edited by kmefun; February 12, 2016 at 10:47.
kmefun is offline   Reply With Quote

Old   September 30, 2016, 19:35
Default
  #6
New Member
 
felipe
Join Date: Sep 2016
Posts: 2
Rep Power: 0
fhorta is on a distinguished road
Anyone know if this utility is was discontinued? I see the svn repo is down, and this version is not compilable anymore for OpenFoam 4. Is there any other solution? I'm trying to run this example for inc turbulence flow, that apparently, it was compiled for of2.x. Thanks!
fhorta is offline   Reply With Quote

Old   March 28, 2017, 16:15
Default setDiscreteFields for OpenFOAM 4.0
  #7
New Member
 
Mohamed Elshahat Ouda
Join Date: May 2010
Posts: 29
Rep Power: 16
me.ouda is on a distinguished road
Hi felipe,

I've modified setDiscreteFields utility to work with OpenFOAM 4.0

It may be a little bit late for you, but just in case someone else need it.

Regards.
Attached Files
File Type: zip setDiscreteFields_OF4.0.zip (3.9 KB, 78 views)
arvindpj and dslbkxd like this.
me.ouda is offline   Reply With Quote

Old   March 28, 2017, 18:37
Default
  #8
New Member
 
felipe
Join Date: Sep 2016
Posts: 2
Rep Power: 0
fhorta is on a distinguished road
Not that late since I JUST got back to this project. Thanks bro!
fhorta is offline   Reply With Quote

Old   September 26, 2017, 08:56
Default setDiscreteFields utility
  #9
Senior Member
 
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 120
Rep Power: 15
kerim is on a distinguished road
Hi!
I am going to adjust
simpleFoam Validation in Urban Environment using AIJ guidelines for


openfoam 5. The main problem is setDiscreteFields utility. could someone help to me?
kerim is offline   Reply With Quote

Old   September 26, 2017, 11:22
Default setDiscreteFields utility
  #10
Senior Member
 
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 120
Rep Power: 15
kerim is on a distinguished road
The setDiscreteFieldsDic file is attached. It was copied into case system folder. After running setDiscreteFields command I have faced with problem - setDiscreteFields: command not found.

Any kind of help highly appreciated.
Attached Files
File Type: gz setDiscreteFieldsDict.tar.gz (1.2 KB, 18 views)
kerim is offline   Reply With Quote

Reply

Tags
abl, openfoam, power law, setdiscretefields, utility


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
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
[mesh manipulation] mirrorMesh utility preserving regions zfaraday OpenFOAM Meshing & Mesh Conversion 1 November 7, 2016 21:51
Something doens't work with wallHeatFlux utility or externalWallHeatFluxTemperat BC!! zfaraday OpenFOAM Post-Processing 0 February 5, 2015 16:47
problem with sampling Utility in openFOAM 1.6 carmir OpenFOAM Post-Processing 10 February 26, 2014 02:00
How to compile a new utility rudy OpenFOAM 4 October 1, 2011 22:48


All times are GMT -4. The time now is 09:52.