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

Getting Started with OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree38Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 14, 2022, 13:55
Default Step-through of openfoam code when running tutorial?
  #26
New Member
 
Michael Jensen
Join Date: May 2022
Posts: 27
Rep Power: 4
mikethe1wheelnut is on a distinguished road
Hi!


OpenFoam has a million lines of code. Apparently. That's a lot. Take a while to read. A standard technique for understanding what a code is doing is to step through it. [For context, an alternative method of learning how to use a tool like this is to try changing variables, etc, seeing what the result is. To an extent, this is shooting in the dark.] To phrase that yet another way, it would be very useful to have an "interface" with the code such that it shows you, systematically, what it is doing to setup the broblem, then to solve it. You need to define, say, the differential equations, then the boundary conditions, then the initial conditions, then solve. An "interface" (do I mean gui? maybe? -I'm anticipating that people might interpret it that way..) for doing this would be very useful and helpful. Something that allows you to both literally move through it line-by-line (which might take a very long time), or from file-to-file, or just skipping over loops, etc. This would/could be the link between setting up the problem, for example, with pen-and-paper, (or as code you write yourself) writing down all the equations and boundary conditions and initial conditions then calling a solver you've written (or found?), and using everything the way the tutorials are setup, where you provide a bunch of files, then put in a command, the program runs, and you get an output. (the shooting in the dark method). So, does such an interface exist? It seems to me that this would go a long way toward speeding peoples understanding of how the source code all works together. Thanks for your time for reading this! -I should specify that I'm using ubuntu..
mikethe1wheelnut is offline   Reply With Quote

 


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
Memory protection in OpenFOAM / combinig with FORTRAN botp OpenFOAM Programming & Development 2 February 15, 2016 12:25
OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x wyldckat OpenFOAM Bugs 18 October 21, 2010 05:51
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 03:14
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 11:32
Summer School on Numerical Modelling and OpenFOAM hjasak OpenFOAM 5 October 12, 2008 13:14


All times are GMT -4. The time now is 07:11.