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

How to specify nonuniform boundary condition from a given file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2014, 03:50
Default How to specify nonuniform boundary condition from a given file
  #1
Member
 
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12
nwpukaka is on a distinguished road
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
nwpukaka is offline   Reply With Quote

Old   July 30, 2014, 05:06
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
search in forum for read file with groovyBC
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   July 31, 2014, 04:41
Default
  #3
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 159
Rep Power: 17
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
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?
jhoepken is offline   Reply With Quote

Old   July 31, 2014, 19:48
Default
  #4
Member
 
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12
nwpukaka is on a distinguished road
Quote:
Originally Posted by nimasam View Post
search in forum for read file with groovyBC
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
nwpukaka is offline   Reply With Quote

Old   July 31, 2014, 19:49
Default
  #5
Member
 
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12
nwpukaka is on a distinguished road
Quote:
Originally Posted by jhoepken View Post
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.
Hi Jens,

Is there any example how to modify the boundary condition in OpenFoam?

Cheers
Kan
nwpukaka is offline   Reply With Quote

Old   August 1, 2014, 06:53
Default timeVaryingMappedFixedValue BC
  #6
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
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
fabian_roesler is offline   Reply With Quote

Old   August 6, 2014, 00:55
Default
  #7
Member
 
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12
nwpukaka is on a distinguished road
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
nwpukaka is offline   Reply With Quote

Reply


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
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


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