CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

How to specify BC as a function compiled in solver

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 29, 2008, 10:50
Default Hello, Recently I've been "
  #1
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 7
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, 16: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, 17:30
Default @martin: The parabolic-inlet
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,889
Rep Power: 38
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

Thread Tools
Display Modes

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 On
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 04:56
Control function in Elliptic solver Hoang Anh Duong Main CFD Forum 4 July 9, 2007 04:32
Solver and density function for high speed vapour christian OpenFOAM Running, Solving & CFD 17 April 12, 2007 03:41
Stream Function - Potential Function coordinates harish Main CFD Forum 8 June 25, 2005 14:18
compiled function David FLUENT 2 March 31, 2005 07:37


All times are GMT -4. The time now is 04:49.