MooseEnums have been around for a few years in MOOSE. They are useful anytime you need to create a list of options for your custom objects. MooseEnums automatically verify that a supplied option matches an item in the list (case-insensitive). MOOSE has full support for using them with the InputParameters class as well.


MultiMooseEnums are an extension of MooseEnum. They have all the same benefits but can store multiple options. They are easy to assign to and retrieve values from for building the logic in your objects.

// Note the center argument
MultiMooseEnum execute_on("residual, jacobian, timestep initial custom timestep_begin", "initial timestep", "The stage of the simulation where this object is executed"); 

// Reassign the Enum
execute_on = "residual timestep_begin";

// Insert an item

// Retrieve a value
std::string value = execute_on[0];  // Index like a vector

// Return the size
unsigned int size = execute_on.size();

// Return the number of unique items in the Enum
unsigned int unique_size = execute_on.unique_size();

// Iterate over and print the options
for (MooseEnumIterator it = execute_on.begin(); it != execute_on.end(); ++it)
  _console << *it << '\n';

// See if a value is in the Enum
if (execute_on.contains("timestep"))  // Not case sensitive

For a complete list of features see the Doxygen page for MultiMooseEnum

Currently unrated


Pandora Jewelry Deals 1 month ago

pandora charms can be combined with beautiful necklaces and bracelets to create a unique look for; pandora jewelry Online shopping from a great selection at Jewellery Store. pandora bracelets pandora Jewellery,Shop our selection of engagement rings,wedding rings, diamonds, gemstones,metals and more.

Link | Reply
Currently unrated

Pandora Jewelry Deals 4 days, 1 hour ago

pandora Silver Charm Bracelet with Heart Clasp Charm.<a href="http://www.pandoraoutlet2017.co.uk/">Pandora Outlet 2017</a> Brand new Christmas 2017 collection.pandora Ivory White Braided Double Leather Bracelet.<a href="http://www.pandoraoutlet2017.co.uk/charms-pandora-sale/">Charms Pandora Sale</a> pandora Gift Card amp pandora Coupons Promo Deals?During this sale you can enjoy 50% off or even more on <a href="http://www.pandoraoutlet2017.co.uk/pandora-outlet-store/">Pandora Outlet Store</a> selected pandora charms,Famous for its beauty and uality, pandora jewelry offers style and eleganc.

Link | Reply
Currently unrated

New Comment


required (not published)


R&D 100

Recent Blog Posts

Using our new clang-format Style

8 months, 2 weeks ago

Steady State Algorithm Change

1 year, 5 months ago

Making an App inherit from an App

1 year, 6 months ago

Changing a published API (Deprecation)

1 year, 6 months ago

DiscreteMaterial Objects

1 year, 8 months ago

Recent Posts






RSS / Atom