|
[Sponsors] |
How to specify nonuniform boundary condition from a given file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 30, 2014, 03:50 |
How to specify nonuniform boundary condition from a given file
|
#1 |
Member
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12 |
Dear OpenFoamer,
I want to set the nonuniform fixedGradient to a boundary patch, the value of this nonuniform fixeGradient is from other software, and is saved in a file, so how can I set this kind of boundary condition in OpenFoam, and is there any examples? Thank you in advance. Kan |
|
July 30, 2014, 05:06 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
search in forum for read file with groovyBC
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
July 31, 2014, 04:41 |
|
#3 |
Senior Member
|
You could also just write a custom boundary condition (inherit from fixedGradient) that reads the input data from a file and maps that to the respective boundary faces.
__________________
Blog: sourceflux.de/blog "The OpenFOAM Technology Primer": sourceflux.de/book Twitter: @sourceflux_de Interested in courses on OpenFOAM? |
|
July 31, 2014, 19:48 |
|
#4 |
Member
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12 |
Hi Nima,
Thank you for your hint, I think this thread: http://www.cfd-online.com/Forums/ope...le-values.html provides some useful information about how to implement my request. Cheers |
|
July 31, 2014, 19:49 |
|
#5 |
Member
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12 |
||
August 1, 2014, 06:53 |
timeVaryingMappedFixedValue BC
|
#6 |
Senior Member
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18 |
Hi
You could also use the BC timeVaryingMappedFixedValue. This boundary conditions interpolates the values from a set of supplied points in space and time. Supplied data should be specified in constant/boundaryData/<patchname>. Never used it by my self though. Check this link: http://foam.sourceforge.net/docs/cpp...8.html#details Cheers Fabian |
|
August 6, 2014, 00:55 |
|
#7 |
Member
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12 |
Hi Fabian,
Thank you for your kind reply, I have a quick look at timeVaryingMappedFixedValue BC, It will define data at each points, but my input data is face centre data. Cheers, Kan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 06:28 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 07:00 |
2.0.x on Mac OSX | niklas | OpenFOAM Installation | 74 | March 28, 2012 16:46 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 01:24 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |