CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to specify BC as a function compiled in solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2008, 09:50
Default Hello, Recently I've been "
  #1
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 17
kar is on a distinguished road
Hello,

Recently I've been "playing" with OF quite a lot, but haven't found how to do that thing. For example I would like to write some time dependant, nonlinear C++ function for temperature on boundary. Let x,y be local coordinates on boundary surface, t - time, so I want to use BC T = T(x,y,t). Or T gradient. If local coordinates is a problem, I don't mind writing that function for global ones.
How to do this?
kar is offline   Reply With Quote

Old   January 29, 2008, 15:36
Default Search for parabolic inlet...
  #2
unoder
Guest
 
Posts: n/a
Search for parabolic inlet... I remember a discussion about that earlier.
  Reply With Quote

Old   January 29, 2008, 16:30
Default @martin: The parabolic-inlet
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
@martin:
The parabolic-inlet is not time-dependent. He will need a "real" boundary condition.

@karlis:
Have a look at $FOAM_SRC/finiteVolume/fields/fvPatchFields/derived/timeVaryingUniformFixedValue / as a starting point (the parabolic stuff might give you an idea how to implement the spatial part of the function)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
Help for compiled UDF Tim FLUENT 1 April 8, 2011 03:56
Control function in Elliptic solver Hoang Anh Duong Main CFD Forum 4 July 9, 2007 03:32
Solver and density function for high speed vapour christian OpenFOAM Running, Solving & CFD 17 April 12, 2007 02:41
Stream Function - Potential Function coordinates harish Main CFD Forum 8 June 25, 2005 13:18
compiled function David FLUENT 2 March 31, 2005 07:37


All times are GMT -4. The time now is 19:34.