CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Need help with programming syntax for modifying laplacianFoam

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

LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2017, 01:02
Default Need help with programming syntax for modifying laplacianFoam
New Member
Join Date: Oct 2015
Posts: 2
Rep Power: 0
rareshubham is on a distinguished road
Hello all!
I have just started learning OpenFOAM. I understand the structure and I able to understand and run most tutorials. Now I want to go to the next level and start developing solvers.
I have taken up a very simple problem to start with - Heat generation in a rectangle block.
I want to modify laplacianFoam and add the heat generation part to it. I want to define a cylindrical region in the mesh and then specify a source term inside it and 0 everywhere else.
I have read the programmers guide but I have still not completely understood the syntax of commands.
I know what steps to take to develop this solver but can someone please show me the ropes of how to write commands to find the center of the mesh and then how to assign a source term to all the cells within a small cylinder at the center. Basically, how should I go about finding this kind of information for any variables and expressions that I will use for future solver development.
Thank you!
Attached Images
File Type: png Screenshot from 2017-12-04 23-57-35.png (8.9 KB, 6 views)
rareshubham is offline   Reply With Quote


expressions, laplacianfoam, solver development, syntax, variables

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF syntax error Ratel Fluent UDF and Scheme Programming 4 May 23, 2015 05:15
what is syntax error : missing ')' before ';' aleisia Fluent UDF and Scheme Programming 8 March 10, 2015 15:42
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16

All times are GMT -4. The time now is 17:52.