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

howto define function at case level used inside solver?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2017, 07:37
Default howto define function at case level used inside solver?
  #1
New Member
 
Join Date: Jul 2017
Posts: 1
Rep Power: 0
DanielCFD is on a distinguished road
Dear foamers,
 
I am trying to add a user defined field depending on space and time (B(x,t)) to the Poisson's equation. It is not a source term! The Poisson's equation solver is part of a larger solver, like pisoFoam. First I hard coded it inside the Poisson's equation. But now I want to make it a bit more fancy and user friendly. I would like to have a file at the case level which defines the field. First, I was thinking I could use function objects but they seem to work only one way: given a calculated field one can perform all kinds of operations on it. But you cannot feed back information into the solver (Poisson's equation).
 
Any suggestion how to proceed?
DanielCFD 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
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 14:07
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 00:01
Immersed Solid Momentum Sources inside function Martinw CFX 1 October 10, 2013 17:14
[snappyHexMesh] Adding layers goes wrong with SnappyHexMesh Elise OpenFOAM Meshing & Mesh Conversion 1 April 22, 2013 02:32


All times are GMT -4. The time now is 23:09.