Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "MOOSE Support in ICE"

(Prerequisites)
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== Introduction ===
+
== Introduction ==
 +
The Multi-physics Object Oriented Simulation Environment (MOOSE) is a parallel, finite-element framework developed at Idaho National Laboratory (INL). ICE has always provided strong support for MOOSE input generation, simulation execution, and data visualization as a core part of the ICE platform. To learn more about MOOSE, please check out [https://mooseframework.org MOOSE Framework].
  
The Multi-physics Object Oriented Simulation Environment (MOOSE) is parallel, finite-element framework developed at Idaho National Laboratory (INL). To learn more about it, check out [mooseframework.org MOOSE Getting Started]. ICE has always provided strong support for MOOSE input generation, simulation execution, and data visualization as a core part of the platform. As of the summer of 2015, that support has been greatly updated to incorporate comments from the MOOSE internal development team and MOOSE application developers. The updated support provides a unified interface for interacting with the MOOSE framework, and tools for the embedded visualizations of problem meshes, simulation output meshes, and Postprocessor CSV plotting. Additionally, we have improved our MOOSE tooling to incorporate real-time updating from a running MOOSE simulation back to ICE. Users can now specify a list of Postprocessor values they care about, launch their simulation, and see, in real-time, those Postprocessor plots updating.  
+
Support for MOOSE within ICE was expanded further in the summer of 2015 to incorporate changes based on feedback from MOOSE's internal development team and MOOSE application developers. The latest version of ICE now provides a unified interface for interacting with the MOOSE framework alongside tools for embedded visualizations of problem meshes, simulation output, and post processor XY plotting. Additionally, ICE now has improved MOOSE tooling that facilitates real-time updating—via web sockets—from a running MOOSE simulation back to ICE. Users can now specify a list of post processor values relevant to their job, launch their simulation, and see the specified post processor plots update in real time.  
  
This article will detail these new updates, and walk you through the use of the new MOOSE support in ICE. It will detail ICE installation, MOOSE input generation, existing MOOSE input file loading, simulation launch, and post-simulation data visualization. Additionally, ICE now supports MOOSE application development. To see a tutorial on that, check out [[Developing MOOSE Applications with ICE]].
+
The following tutorial will describe these new updates and provide a walkthrough for using MOOSE in the ICE development environment. The tutorial will also detail ICE installation, MOOSE input generation, existing MOOSE input file loading, simulation launch, and post-simulation data visualization using an existing (user-provided) MOOSE application.
 +
 
 +
Note that ICE now supports MOOSE application development. Check out [[Developing MOOSE Applications with ICE]] for more information.
  
 
=== ICE Installation ===  
 
=== ICE Installation ===  
 +
To install ICE, please check out the [[Getting_ICE|Getting ICE tutorial]].
  
The ICE team has developed a new and improved mechanism for users to install ICE and its dependencies. To do so, users need to simply navigate to https://sourceforge.net/projects/niceproject/files and download the new ICE_installer.sh script. To install ICE, simply run this script in a directory of your choosing. For example:
+
=== Prerequisites ===
  
<pre>
+
To use the MOOSE support in ICE, the user will need to have MOOSE installed on their system along with any MOOSE-based application that the user would like to run. The user can simply use "moose_test" as the project name if no other application is available.
mkdir ICE_install
+
cd ICE_install
+
wget https://sourceforge.net/projects/niceproject/files/ICE_installer.sh .
+
chmod +x ICE_installer.sh
+
./ICE_installer.sh
+
</pre>
+
  
Running this script will pull down the correct ICE, VisIt, and HDFJava for your operating system, unpack them, and configure ICE to use the downloaded VisIt and HDFJava dependencies. For Mac users, this script will additionally configure ICE to use the current user's environment variables and register those environments with ICE through the Apple Application Launch Service. All of this will enable you to simple double click the created ICE application icon (/Users/username/Applications/ICE.app for Mac, and for Linux, an ICE application icon in the Programming category of the applications menu).  
+
Please note that installing MOOSE requires the user to add several packages (prerequisites) to their system. For more information on how to install MOOSE and the prerequisites for doing so, please check out the MOOSE [http://www.mooseframework.org/getting-started Getting Started] guide.
  
For Windows users, we also provide MSI installers at the same files download URL. Just download the installer specific to your architecture, run it, and you'll be ready to use ICE.
+
For Mac OS X users, ICE developers also recommend installing the [http://brew.sh/ Homebrew package manager] to ensure all required packages and their dependencies are available to the user.
  
=== Prerequisites ===  
+
To install MOOSE and create a MOOSE-based application from scratch (or clone an existing application) from within ICE itself, users should check out the [[Developing MOOSE Applications with ICE]] article.
 +
 
 +
== MOOSE Perspective ==
 +
 
 +
ICE comes bundled with a 'MOOSE Perspective' that organizes the various views and windows that a MOOSE user or developer would need to efficiently work with MOOSE in ICE. The updated MOOSE Perspective shows the ''Item Viewer'', ''Resources View'', ''Project Explorer'', ''MOOSE Data Tree View'', and ''Properties'' tab to enable the user to have an efficient interaction with the framework.
 +
 
 +
To access the MOOSE Perspective, use the the ICE toolbar at the top and navigate to:
 +
 
 +
''Window'' > ''Open Perspective'' > ''Other...''
 +
 
 +
Select ''MOOSE'' in the window that pops up and click ''OK''.
 +
 
 +
Alternatively, the user can also access the same pop-up menu by clicking the ''Open Perspective'' button in the upper right-hand corner of the ICE workbench (as shown in the image below).
 +
 
 +
[[File:ICE_OpenPerspective.png]]
 +
 
 +
Once the MOOSE Perspective opens, the workbench now contains fewer UI components and resembles something like this:
 +
 
 +
[[File:new_moose_perspective.png | 1000px]]
 +
 
 +
 
 +
== Connecting to VisIt ==
 +
 
 +
If the user would like to view embedded visualizations within the ICE MOOSE tools, then they will need to first specify a connection to VisIt. To do this, simply open the ''Preferences'' menu item in the top toolbar.
 +
 
 +
For Mac OS: ''Eclipse ICE'' > ''Preferences''<br />
 +
For Linux: ''Window'' > ''Preferences''
 +
 
 +
In the preferences wizard, navigate to the ''Visualization Preference'' node in the left tree view, open it, and select the ''VisIt'' node.
 +
 
 +
''Preferences'' > ''Visualization'' > ''VisIt''
 +
 
 +
In that preferences view, a user can add a connection to VisIt by clicking the add button (stylized as a ''+'') and specifying the path to the VisIt executable.
 +
 
 +
[[File:visit_connection.png]]
 +
 
 +
 
 +
== The MOOSE Workflow Item ==
 +
 
 +
Previously, ICE had two separate interfaces from which the user could choose, depending on the desired task: the MOOSE Model Builder and the MOOSE Launcher. The ICE team has since merged the functionality of these workspaces together and now allows users to construct a MOOSE Workflow Item, which presents a unified interface for MOOSE simulation development.
 +
 
 +
Within ICE, the user has two options for working on a MOOSE Workflow Item: (1) [[#Creating a new MOOSE Workflow Item|Creating a new MOOSE Workflow Item]] or (2) [[#Importing an Existing MOOSE Workflow Item|Importing an Existing MOOSE Workflow Item]].
 +
 
 +
Now let's take a look at the use of the MOOSE Workflow Item in each of these two cases, starting with the creation of a new MOOSE Workflow Item.
 +
 
 +
=== Creating a new MOOSE Workflow Item ===
 +
To create a new MOOSE Workflow Item, simply click the green ''+'' button in the 'Item Viewer,' located on the left-hand side of the ICE workbench and MOOSE Perspective.
 +
 
 +
[[File:ICE_CreateItem.png]]
 +
 
 +
This will prompt a window to pop up; from there, select the ''MOOSE Workflow'' item, and click ''Finish''.
 +
 
 +
[[File:item_selector.png]]
 +
 
 +
When a user selects the MOOSE Workflow Item for the first time, they will be presented with the following form:
 +
 
 +
[[File:new_moose_item.png | 1000px]]
 +
 
 +
To begin using the MOOSE Workflow Item, the user will need to specify a MOOSE-based application. As shown in the screenshot above, since this is the first time the MOOSE Workflow Item has been used, there are no available applications to select, and ICE is indicating that the user must import one.
 +
 
 +
 
 +
==== Import MOOSE Application ====
 +
 
 +
To import an application, click the ''Browse'' button.
 +
 
 +
[[File:moose-based-app.png]]
 +
 
 +
The user will then be prompted to specify whether this application is hosted [[#Importing a Local Application|locally]] (on the user's local storage) or [[#Importing a Remote Application|remotely]] (on a remote server).
 +
 
 +
 
 +
===== Importing a Local Application =====
 +
 
 +
[[File:local_or_remote.png]]
 +
 
 +
''Local'' will be selected for this first example. Upon selection, a file dialog will appear from which the user can search for the desired MOOSE application.
 +
 
 +
Once the appropriate MOOSE application is selected, click ''Open'' to import the application.
 +
 
 +
Note that the location of the selected application is saved for future use (i.e., the value persists between ICE executions so that the user can reuse the same application over and over again).
 +
 
 +
[[File:local_file_browser.png]]
 +
 
 +
 
 +
===== Importing a Remote Application =====
 +
 
 +
As mentioned above, ICE also lets MOOSE users point to remotely-hosted MOOSE applications. To import a remotely-hosted application, simply select ''Remote'' on the 'Local or Remote Application' dialog.
 +
 
 +
[[File:local_or_remote.png]]
 +
 
 +
This will prompt the remote connection dialog, shown below.
 +
 
 +
Fill out the 'New Connection' wizard with the information needed to connect to the remote host and click ''Finish''.
 +
 
 +
[[File:remote_connection.png]]
 +
 
 +
Upon correct completion of this form, a remote file browser will appear from which the user can search for the desired MOOSE application on the remote server or host.
 +
 
 +
Once the appropriate MOOSE application is selected, click ''OK'' to import the application.
 +
 
 +
[[File:remote_app.png]]
 +
 
 +
 
 +
===== Generate Tree =====
 +
 
 +
With the application (local or remote) now imported, the path to the application will populate the ''Browse'' field.
 +
 
 +
[[File:app_imported.png]]
 +
 
 +
The next step is to save the current MOOSE Workflow Item to trigger the generation of the MOOSE input tree for that application.
 +
 
 +
Select ''File'' > ''Save'' from the ICE main menu.
 +
 
 +
Once saved, the MOOSE input tree will be displayed, as shown below.
 +
 
 +
[[File:Input tree.png]]
 +
 
 +
From this tree, the user can begin constructing a MOOSE input file. The user can add children to the tree nodes, delete children, and set properties for each block in the ''Properties View''.
 +
 
 +
=== Importing an Existing MOOSE Workflow Item ===
 +
 
 +
Alternatively, if the user would like to import an existing <tt>*.i</tt> input file to modify, they can click the yellow ''Item Import Arrow'' located at the top of the ICE workbench.
 +
 
 +
[[File:ICE_ImportItem.png]]
 +
 
 +
A wizard will then prompt the user to specify two things: (1) the <tt>*.i</tt> file to be imported and (2) the type of ''Item'' the file should be imported into.
 +
 
 +
''Browse'' the file system to locate the file to be imported and then select ''MOOSE Workflow'' from the list.
 +
 
 +
When the user has found the desired MOOSE Workflow Item, select ''Finish.''
 +
 
 +
[[File:Import_moose_item_stc.png]]
 +
 
 +
With the existing MOOSE Workflow Item now imported, the workflow variables will appear in the main form editor area in the MOOSE Perspective. The tree view will also be populated with the contents of the file.
 +
 
 +
Next, just as the user would when creating a new MOOSE Workflow Item, the user must [[#Import MOOSE Application|select the corresponding application]] for the imported MOOSE Workflow Item ([[#Importing a Local Application|local]] or [[#Importing a Remote Application|remote]]) and select ''File'' > ''Save'' to [[#Generate Tree|generate the tree]].
 +
 
 +
This will merge the current tree that corresponds to the input file with the application's YAML tree, resulting in a view like this:
 +
 
 +
[[File:merged_tree.png]]
 +
 
 +
 
 +
=== Updates to the MOOSE Tree ===
 +
 
 +
The MOOSE tree has been improved and made more intuitive. Blocks that require a variable to be specified (e.g., the ''Kernels'' block) now show only the available selections, which originate from entries created in the ''Variables'' block.
 +
 
 +
Simply add new variables to the ''Variables'' block and the new variable(s) will be available for any block that requires a variable to be specified.
 +
 
 +
[[File:combined_vars.png]]
 +
 
 +
Additionally, all file entries in the MOOSE tree will dynamically show up in the ''Output File Parameters'' data component on the MOOSE Workflow form.
 +
 
 +
[[File:Combined_dynamic_files.png]]
 +
 
 +
 
 +
=== Viewing the Mesh ===
 +
 
 +
ICE now supports embedded visualizations, and the MOOSE support in ICE enables users to view their mesh for a given application run.
 +
 
 +
To view the mesh for a given MOOSE Workflow Item and input tree, first ensure that a valid VisIT connection is established.
 +
 
 +
Then look in the ''Resources'' tab in the MOOSE Perspective workflow, pictured below.
 +
 
 +
[[File:mesh_resource.png]]
 +
 
 +
Select the desired mesh file and double click it.
 +
 
 +
The mesh will then open in an embedded view in the MOOSE Workflow Item's Mesh and Output Files tab.
 +
 
 +
[[File:mesh_view.png | 1000px]]
 +
 
 +
The mesh is completely interactive, and the user can rotate the view and zoom in and out to get a good look at the mesh that is in use for the current MOOSE application launch.
 +
 
 +
 
 +
=== Launching the Application ===
 +
 
 +
Launching the MOOSE-based application is simple. If the user selected a remotely-hosted application, then ICE handles the appropriate remote launch semantics (file uploads/downloads, remote invocation, etc). If the user selected a local application, then ICE handles the local execution of the application in the user's jobs folder.
 +
 
 +
MOOSE users can also specify the number of MPI processes and Intel TBB threads to use in the simulation execution, shown below.
 +
 
 +
[[File:parallel_exec.png]]
 +
 
 +
To launch the application, simply click the ''Go'' button for the 'Launch the Job' action in the top right of the MOOSE Workflow Item.
 +
 
 +
[[File:Launch_moose_job_stc.png]]
 +
 
 +
This will execute the simulation and pipe the output to the 'Console' view.
 +
 
 +
[[File:moose_console_view.png]]
 +
 
 +
When the simulation completes, the 'Resources' pane is populated with a list of files generated by the simulation, including all post processor CSV files and the simulation output Exodus file.
 +
 
 +
[[File:Resources_pane_stc.png]]
 +
 
 +
To view these files as embedded visualization(s), simply double click on the desired file in the 'Resources' pane.
 +
 
 +
For the output Exodus file, the user can right click on the plot to toggle a context menu that contains a selection of different plots. Simply select the desired plot type to display it on the mesh, as shown below.
 +
 
 +
[[File:solution_mesh.png | 1000px ]]
 +
 
 +
=== Real-time Updating for Postprocessor Values ===
 +
 
 +
ICE and MOOSE can now communicate over web sockets in real time during a simulation. This allows MOOSE to communicate things like Postprocessor values in a way that enables ICE to display a dynamically-updating plot of the Postprocessor during simulation execution.
 +
 
 +
When the user selects the 'Launch the Job' process, ICE adds an 'ICEUpdater' block to the 'Outputs' block within the MOOSE tree that directs MOOSE to communicate with ICE over a web connection during the actual simulation execution.
 +
 
 +
This means that, as the simulation is running, the user can double click a Postprocessor CSV file in the 'Resources' pane and watch it populate in real time.
 +
 
 +
[[File:Resources_pane_stc.png]]
 +
 
 +
Or, if the user would like plots to open immediately, they can select the desired plot in the 'Show Postprocessors' component on the MOOSE form.
 +
 
 +
[[File:pp_view.png]]
 +
 
 +
If these Postprocessors are enabled, ICE will immediately open the Postprocessor plot when a simulation is executed.
  
To use the MOOSE support in ICE, you'll need to have MOOSE installed on your system, and any MOOSE-based application you would like to use (could just be moose_test if you don't have any other application). To install MOOSE on your system, check out mooseframework.org/getting-started. If you would like to install MOOSE and create a MOOSE-based application of your own (or clone an existing application) from with ICE itself, check out the [[Developing MOOSE Applications with ICE]] article.
+
[[File:dynamic_update.png | 1000px]]

Latest revision as of 16:20, 11 November 2016

Introduction

The Multi-physics Object Oriented Simulation Environment (MOOSE) is a parallel, finite-element framework developed at Idaho National Laboratory (INL). ICE has always provided strong support for MOOSE input generation, simulation execution, and data visualization as a core part of the ICE platform. To learn more about MOOSE, please check out MOOSE Framework.

Support for MOOSE within ICE was expanded further in the summer of 2015 to incorporate changes based on feedback from MOOSE's internal development team and MOOSE application developers. The latest version of ICE now provides a unified interface for interacting with the MOOSE framework alongside tools for embedded visualizations of problem meshes, simulation output, and post processor XY plotting. Additionally, ICE now has improved MOOSE tooling that facilitates real-time updating—via web sockets—from a running MOOSE simulation back to ICE. Users can now specify a list of post processor values relevant to their job, launch their simulation, and see the specified post processor plots update in real time.

The following tutorial will describe these new updates and provide a walkthrough for using MOOSE in the ICE development environment. The tutorial will also detail ICE installation, MOOSE input generation, existing MOOSE input file loading, simulation launch, and post-simulation data visualization using an existing (user-provided) MOOSE application.

Note that ICE now supports MOOSE application development. Check out Developing MOOSE Applications with ICE for more information.

ICE Installation

To install ICE, please check out the Getting ICE tutorial.

Prerequisites

To use the MOOSE support in ICE, the user will need to have MOOSE installed on their system along with any MOOSE-based application that the user would like to run. The user can simply use "moose_test" as the project name if no other application is available.

Please note that installing MOOSE requires the user to add several packages (prerequisites) to their system. For more information on how to install MOOSE and the prerequisites for doing so, please check out the MOOSE Getting Started guide.

For Mac OS X users, ICE developers also recommend installing the Homebrew package manager to ensure all required packages and their dependencies are available to the user.

To install MOOSE and create a MOOSE-based application from scratch (or clone an existing application) from within ICE itself, users should check out the Developing MOOSE Applications with ICE article.

MOOSE Perspective

ICE comes bundled with a 'MOOSE Perspective' that organizes the various views and windows that a MOOSE user or developer would need to efficiently work with MOOSE in ICE. The updated MOOSE Perspective shows the Item Viewer, Resources View, Project Explorer, MOOSE Data Tree View, and Properties tab to enable the user to have an efficient interaction with the framework.

To access the MOOSE Perspective, use the the ICE toolbar at the top and navigate to:

Window > Open Perspective > Other...

Select MOOSE in the window that pops up and click OK.

Alternatively, the user can also access the same pop-up menu by clicking the Open Perspective button in the upper right-hand corner of the ICE workbench (as shown in the image below).

ICE OpenPerspective.png

Once the MOOSE Perspective opens, the workbench now contains fewer UI components and resembles something like this:

New moose perspective.png


Connecting to VisIt

If the user would like to view embedded visualizations within the ICE MOOSE tools, then they will need to first specify a connection to VisIt. To do this, simply open the Preferences menu item in the top toolbar.

For Mac OS: Eclipse ICE > Preferences
For Linux: Window > Preferences

In the preferences wizard, navigate to the Visualization Preference node in the left tree view, open it, and select the VisIt node.

Preferences > Visualization > VisIt

In that preferences view, a user can add a connection to VisIt by clicking the add button (stylized as a +) and specifying the path to the VisIt executable.

Visit connection.png


The MOOSE Workflow Item

Previously, ICE had two separate interfaces from which the user could choose, depending on the desired task: the MOOSE Model Builder and the MOOSE Launcher. The ICE team has since merged the functionality of these workspaces together and now allows users to construct a MOOSE Workflow Item, which presents a unified interface for MOOSE simulation development.

Within ICE, the user has two options for working on a MOOSE Workflow Item: (1) Creating a new MOOSE Workflow Item or (2) Importing an Existing MOOSE Workflow Item.

Now let's take a look at the use of the MOOSE Workflow Item in each of these two cases, starting with the creation of a new MOOSE Workflow Item.

Creating a new MOOSE Workflow Item

To create a new MOOSE Workflow Item, simply click the green + button in the 'Item Viewer,' located on the left-hand side of the ICE workbench and MOOSE Perspective.

ICE CreateItem.png

This will prompt a window to pop up; from there, select the MOOSE Workflow item, and click Finish.

Item selector.png

When a user selects the MOOSE Workflow Item for the first time, they will be presented with the following form:

New moose item.png

To begin using the MOOSE Workflow Item, the user will need to specify a MOOSE-based application. As shown in the screenshot above, since this is the first time the MOOSE Workflow Item has been used, there are no available applications to select, and ICE is indicating that the user must import one.


Import MOOSE Application

To import an application, click the Browse button.

Moose-based-app.png

The user will then be prompted to specify whether this application is hosted locally (on the user's local storage) or remotely (on a remote server).


Importing a Local Application

Local or remote.png

Local will be selected for this first example. Upon selection, a file dialog will appear from which the user can search for the desired MOOSE application.

Once the appropriate MOOSE application is selected, click Open to import the application.

Note that the location of the selected application is saved for future use (i.e., the value persists between ICE executions so that the user can reuse the same application over and over again).

Local file browser.png


Importing a Remote Application

As mentioned above, ICE also lets MOOSE users point to remotely-hosted MOOSE applications. To import a remotely-hosted application, simply select Remote on the 'Local or Remote Application' dialog.

Local or remote.png

This will prompt the remote connection dialog, shown below.

Fill out the 'New Connection' wizard with the information needed to connect to the remote host and click Finish.

Remote connection.png

Upon correct completion of this form, a remote file browser will appear from which the user can search for the desired MOOSE application on the remote server or host.

Once the appropriate MOOSE application is selected, click OK to import the application.

Remote app.png


Generate Tree

With the application (local or remote) now imported, the path to the application will populate the Browse field.

App imported.png

The next step is to save the current MOOSE Workflow Item to trigger the generation of the MOOSE input tree for that application.

Select File > Save from the ICE main menu.

Once saved, the MOOSE input tree will be displayed, as shown below.

Input tree.png

From this tree, the user can begin constructing a MOOSE input file. The user can add children to the tree nodes, delete children, and set properties for each block in the Properties View.

Importing an Existing MOOSE Workflow Item

Alternatively, if the user would like to import an existing *.i input file to modify, they can click the yellow Item Import Arrow located at the top of the ICE workbench.

ICE ImportItem.png

A wizard will then prompt the user to specify two things: (1) the *.i file to be imported and (2) the type of Item the file should be imported into.

Browse the file system to locate the file to be imported and then select MOOSE Workflow from the list.

When the user has found the desired MOOSE Workflow Item, select Finish.

Import moose item stc.png

With the existing MOOSE Workflow Item now imported, the workflow variables will appear in the main form editor area in the MOOSE Perspective. The tree view will also be populated with the contents of the file.

Next, just as the user would when creating a new MOOSE Workflow Item, the user must select the corresponding application for the imported MOOSE Workflow Item (local or remote) and select File > Save to generate the tree.

This will merge the current tree that corresponds to the input file with the application's YAML tree, resulting in a view like this:

Merged tree.png


Updates to the MOOSE Tree

The MOOSE tree has been improved and made more intuitive. Blocks that require a variable to be specified (e.g., the Kernels block) now show only the available selections, which originate from entries created in the Variables block.

Simply add new variables to the Variables block and the new variable(s) will be available for any block that requires a variable to be specified.

Combined vars.png

Additionally, all file entries in the MOOSE tree will dynamically show up in the Output File Parameters data component on the MOOSE Workflow form.

Combined dynamic files.png


Viewing the Mesh

ICE now supports embedded visualizations, and the MOOSE support in ICE enables users to view their mesh for a given application run.

To view the mesh for a given MOOSE Workflow Item and input tree, first ensure that a valid VisIT connection is established.

Then look in the Resources tab in the MOOSE Perspective workflow, pictured below.

Mesh resource.png

Select the desired mesh file and double click it.

The mesh will then open in an embedded view in the MOOSE Workflow Item's Mesh and Output Files tab.

Mesh view.png

The mesh is completely interactive, and the user can rotate the view and zoom in and out to get a good look at the mesh that is in use for the current MOOSE application launch.


Launching the Application

Launching the MOOSE-based application is simple. If the user selected a remotely-hosted application, then ICE handles the appropriate remote launch semantics (file uploads/downloads, remote invocation, etc). If the user selected a local application, then ICE handles the local execution of the application in the user's jobs folder.

MOOSE users can also specify the number of MPI processes and Intel TBB threads to use in the simulation execution, shown below.

Parallel exec.png

To launch the application, simply click the Go button for the 'Launch the Job' action in the top right of the MOOSE Workflow Item.

Launch moose job stc.png

This will execute the simulation and pipe the output to the 'Console' view.

Moose console view.png

When the simulation completes, the 'Resources' pane is populated with a list of files generated by the simulation, including all post processor CSV files and the simulation output Exodus file.

Resources pane stc.png

To view these files as embedded visualization(s), simply double click on the desired file in the 'Resources' pane.

For the output Exodus file, the user can right click on the plot to toggle a context menu that contains a selection of different plots. Simply select the desired plot type to display it on the mesh, as shown below.

Solution mesh.png

Real-time Updating for Postprocessor Values

ICE and MOOSE can now communicate over web sockets in real time during a simulation. This allows MOOSE to communicate things like Postprocessor values in a way that enables ICE to display a dynamically-updating plot of the Postprocessor during simulation execution.

When the user selects the 'Launch the Job' process, ICE adds an 'ICEUpdater' block to the 'Outputs' block within the MOOSE tree that directs MOOSE to communicate with ICE over a web connection during the actual simulation execution.

This means that, as the simulation is running, the user can double click a Postprocessor CSV file in the 'Resources' pane and watch it populate in real time.

Resources pane stc.png

Or, if the user would like plots to open immediately, they can select the desired plot in the 'Show Postprocessors' component on the MOOSE form.

Pp view.png

If these Postprocessors are enabled, ICE will immediately open the Postprocessor plot when a simulation is executed.

Dynamic update.png

Back to the top