www.mooseframework.org
LevelSetCFLCondition.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 // MOOSE includes
13 #include "ElementPostprocessor.h"
15 
16 // Forward declarations
18 
19 template <>
20 InputParameters validParams<LevelSetCFLCondition>();
21 
25 class LevelSetCFLCondition : public LevelSetVelocityInterface<ElementPostprocessor>
26 {
27 public:
28  LevelSetCFLCondition(const InputParameters & parameters);
29  void initialize() override {}
30  void execute() override;
31  void finalize() override;
32  void threadJoin(const UserObject & user_object) override;
33  virtual PostprocessorValue getValue() override;
34 
35 private:
38 
41 };
42 
LevelSetCFLCondition::execute
void execute() override
Definition: LevelSetCFLCondition.C:32
LevelSetCFLCondition::_max_velocity
Real _max_velocity
The max velocity on an element, this is done simply to avoid creating temporary calls to execute.
Definition: LevelSetCFLCondition.h:37
LevelSetCFLCondition::initialize
void initialize() override
Definition: LevelSetCFLCondition.h:29
LevelSetVelocityInterface.h
LevelSetCFLCondition::getValue
virtual PostprocessorValue getValue() override
Definition: LevelSetCFLCondition.C:58
LevelSetVelocityInterface
A helper class for defining the velocity as coupled variables for the levelset equation.
Definition: LevelSetVelocityInterface.h:18
LevelSetCFLCondition::_cfl_timestep
Real _cfl_timestep
The minimum timestep computed using CFL condition.
Definition: LevelSetCFLCondition.h:40
LevelSetCFLCondition::LevelSetCFLCondition
LevelSetCFLCondition(const InputParameters &parameters)
Definition: LevelSetCFLCondition.C:25
validParams< LevelSetCFLCondition >
InputParameters validParams< LevelSetCFLCondition >()
Definition: LevelSetCFLCondition.C:16
LevelSetCFLCondition
Computes the maximum timestep based on the CFL condition.
Definition: LevelSetCFLCondition.h:25
LevelSetCFLCondition::threadJoin
void threadJoin(const UserObject &user_object) override
Definition: LevelSetCFLCondition.C:51
LevelSetCFLCondition::finalize
void finalize() override
Definition: LevelSetCFLCondition.C:45