|
[Sponsors] |
February 8, 2016, 14:07 |
How to use the setDiscreteFields utility?
|
#1 |
New Member
Join Date: Oct 2015
Location: Oviedo, Asturias, Espaņa
Posts: 17
Rep Power: 11 |
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. |
|
February 8, 2016, 17:17 |
|
#2 |
Member
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 13 |
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. Last edited by kmefun; February 9, 2016 at 10:58. |
|
February 11, 2016, 12:54 |
|
#3 |
New Member
Join Date: Oct 2015
Location: Oviedo, Asturias, Espaņa
Posts: 17
Rep Power: 11 |
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 |
|
February 11, 2016, 14:03 |
|
#4 |
New Member
Join Date: Oct 2015
Location: Oviedo, Asturias, Espaņa
Posts: 17
Rep Power: 11 |
Dear Kaufman
Anyway, you have completely solved my problem. Thank you |
|
February 11, 2016, 19:38 |
|
#5 |
Member
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 13 |
The direction is optional entry. More detail can be found in source code (setDiscreteFields.C)
Last edited by kmefun; February 12, 2016 at 11:47. |
|
September 30, 2016, 20:35 |
|
#6 |
New Member
felipe
Join Date: Sep 2016
Posts: 2
Rep Power: 0 |
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!
|
|
March 28, 2017, 17:15 |
setDiscreteFields for OpenFOAM 4.0
|
#7 |
New Member
Mohamed Elshahat Ouda
Join Date: May 2010
Posts: 29
Rep Power: 16 |
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. |
|
March 28, 2017, 19:37 |
|
#8 |
New Member
felipe
Join Date: Sep 2016
Posts: 2
Rep Power: 0 |
Not that late since I JUST got back to this project. Thanks bro!
|
|
September 26, 2017, 09:56 |
setDiscreteFields utility
|
#9 |
Senior Member
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 121
Rep Power: 16 |
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? |
|
September 26, 2017, 12:22 |
setDiscreteFields utility
|
#10 |
Senior Member
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 121
Rep Power: 16 |
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. |
|
Tags |
abl, openfoam, power law, setdiscretefields, utility |
|
|
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 03:36 |
[mesh manipulation] mirrorMesh utility preserving regions | zfaraday | OpenFOAM Meshing & Mesh Conversion | 1 | November 7, 2016 22:51 |
Something doens't work with wallHeatFlux utility or externalWallHeatFluxTemperat BC!! | zfaraday | OpenFOAM Post-Processing | 0 | February 5, 2015 17:47 |
problem with sampling Utility in openFOAM 1.6 | carmir | OpenFOAM Post-Processing | 10 | February 26, 2014 03:00 |
How to compile a new utility | rudy | OpenFOAM | 4 | October 1, 2011 23:48 |