(1 comment)

Dynamically Loading Multiapps

If you are working on your own application and would like to try out the Multiapp system with someone else's Application, you currently you have to run through a series of steps to add dependencies to the Makefile and register the other application explicitly.

This is no longer the case. MOOSE Now supports the ability to dynamically load other applications that may not be linked to your application in any way.

For this example let's assume your application is called "Tortoise" and you want to run "Hare" as a MultiApp. You might start with a block that looks like this in your input file:

[MultiApps]
  [./hare_app]
    type = TransientMultiApp
    app_type = HareApp
    execute_on = timestep
    positions = '0.0 0.0 0.0
                 0.5 0.5 0.0'
   input_files = 'hare_input.i'
 [../]
[]  

Finally, you just need to tell MOOSE where to find this application:

  1. export MOOSE_LIBRARY_PATH=$MOOSE_LIBRARY_PATH:$HOME/projects/hare/lib
  2. Alternatively, you may set the input parameter library_path to point to the folder containing the dynamic library '../../../lib'. Using a relative path means this will work on someone else's system however MOOSE does support either relative or absolute paths.
Currently unrated

Comments

new balance 410 mujer 8 months, 1 week ago

Either way keep up the new balance 410 mujer nice quality writing,

Link | Reply
Currently unrated

New Comment

required

required (not published)

optional

R&D 100

Recent Blog Posts

Using our new clang-format Style

1 month, 2 weeks ago

Steady State Algorithm Change

10 months, 3 weeks ago

Making an App inherit from an App

11 months ago

Changing a published API (Deprecation)

11 months, 1 week ago

DiscreteMaterial Objects

1 year, 1 month ago

Recent Posts

Archive

2017
2016
2015
2014

Tags

Authors

Feeds

RSS / Atom