|
[Sponsors] |
Need help with programming syntax for modifying laplacianFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2017, 01:02 |
Need help with programming syntax for modifying laplacianFoam
|
#1 |
New Member
Shawn
Join Date: Oct 2015
Posts: 2
Rep Power: 0 |
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! |
|
Tags |
expressions, laplacianfoam, solver development, syntax, variables |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |