LynxAdvectionAction.h 2.15 KB
Newer Older
1
/******************************************************************************/
Antoine Jacquey's avatar
Antoine Jacquey committed
2
/*                            This file is part of                            */
3
/*                       LYNX, a MOOSE-based application                      */
Antoine Jacquey's avatar
Antoine Jacquey committed
4
/*                    Lithosphere dYnamic Numerical toolboX                   */
5 6 7 8
/*                                                                            */
/*          Copyright (C) 2017 by Antoine B. Jacquey and Mauro Cacace         */
/*             GFZ Potsdam, German Research Centre for Geosciences            */
/*                                                                            */
Antoine Jacquey's avatar
Antoine Jacquey committed
9 10 11
/*                Licensed under GNU General Public License 3,                */
/*                       please see LICENSE for details                       */
/*                  or http://www.gnu.org/licenses/gpl.html                   */
12 13
/******************************************************************************/

Antoine Jacquey's avatar
Antoine Jacquey committed
14
#pragma once
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

#include "Action.h"

class LynxAdvectionAction;

template <>
InputParameters validParams<LynxAdvectionAction>();

class LynxAdvectionAction : public Action
{
public:
  LynxAdvectionAction(InputParameters params);
  enum ElementLengthType
  {
    MIN,
    MAX,
    AVERAGE
  };
  enum ExecuteOnType
  {
    TIMESTEP_BEGIN,
    TIMESTEP_END
  };

  virtual void act() override;

protected:
  virtual void createAuxVariableActions();
  virtual void createAuxKernelActions();
  virtual void createPostProcessorActions();
  virtual void createKernelActions();

  ElementLengthType _element_length_type;
  ExecuteOnType _execute_on;

  Real _beta_stabilization;
  Real _cr_stabilization;
  Real _coeff_Hs;

  std::vector<VariableName> _velocities;
  std::vector<VariableName> _displacements;
  std::vector<VariableName> _compositional_phases;
  std::vector<VariableName> _temperature;

  std::vector<std::string> _aux_variables;
  std::vector<std::string> _aux_kernels;
  std::vector<std::string> _max_var_pp;
  std::vector<std::string> _min_var_pp;
  std::vector<std::string> _avg_var_pp;
  std::vector<std::string> _max_entropy_pp;
  std::vector<std::string> _min_entropy_pp;
  std::vector<std::string> _avg_entropy_pp;
Antoine Jacquey's avatar
Antoine Jacquey committed
67
};