|
[Sponsors] |
How to specify BC as a function compiled in solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 29, 2008, 09:50 |
Hello,
Recently I've been "
|
#1 |
Senior Member
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 17 |
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? |
|
January 29, 2008, 15:36 |
Search for parabolic inlet...
|
#2 |
Guest
Posts: n/a
|
Search for parabolic inlet... I remember a discussion about that earlier.
|
|
January 29, 2008, 16:30 |
@martin:
The parabolic-inlet
|
#3 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
@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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |