1 / 8

Setting Up Your Problem

Setting Up Your Problem. A Beginner’s Guide. What’s Setup?. Very basically, the Flash code is made up of general independent pieces, called modules, which can be put together and reused to solve different problems

jonny
Download Presentation

Setting Up Your Problem

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Setting Up Your Problem A Beginner’s Guide

  2. What’s Setup? • Very basically, the Flash code is made up of general independent pieces, called modules, which can be put together and reused to solve different problems • By running the setup script you specify the problem you want to solve, locate the needed modules and link all the source code to the object directory --- Then you can compile the code.

  3. First Setup Example • From the main flash directory, /FLASH2/ type ./setup sedov -2d -auto command problem name dimension Setup script determines which modules to include based on the problem name (rather than manually) To run setup you shouldn’t need to modify the setup script (FLASH2/bin/setup.py)

  4. Setup options -auto : setup script will automatically generate the Modules file based on the problem you specify Sample Modules File INCLUDE database/amr/paramesh2.0 INCLUDE driver/time_dep INCLUDE gravity/null INCLUDE hydro/explicit/split/ppm INCLUDE io/amr/hdf5_serial INCLUDE materials/eos/gamma INCLUDE mesh/amr/paramesh2.0/second_order_old INCLUDE util/mappers INCLUDE util/tools INCLUDE util/wrapping Try manually changing io/amr/hdf5_serial to io/amr/hdf5_parallel - Then run setup without the -auto flag If you don’t use the -auto flag, you must have a valid Modules file in the top FLASH directory (FLASH2/Modules)

  5. Setup Options • Another way to use a specific module in setup is with the -with-module option -with-module=<module> : force a specific module to be used in setup ./setup sedov -2d -auto -with-module=io/amr/hdf5_parallel

  6. More Setup Options

  7. Adding a New Setup • To see all of the current setups go to FLASH2/setups/ • All of the setups have at least these 3 things in common • Config file • flash.par file • init_block.F90 file • Certain problems may require other data files or inputs • Look at sedov setup as an example

  8. Adding a New Setup • Config • Contains needed modules • Required runtime parameters (default) • flash.par • Runtime parameters (these override Config parameters) • init_block.F90 • Initializes solution on the mesh • Sets up the initial values of your problem

More Related