https://mooseframework.inl.gov
DiscreteNucleation.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
13 
14 // Forward declaration
16 
21 {
22 public:
24 
25  DiscreteNucleation(const InputParameters & params);
26 
27  virtual void computeProperties();
28 
29 protected:
30  unsigned int _nvar;
31 
33  std::vector<unsigned int> _op_index;
34 
36  const std::vector<Real> _op_values;
37 
39  const Real _penalty;
40 
42  const unsigned int _penalty_mode;
43 
46 };
This UserObject maintains a per QP map that indicates if a nucleus is present or not.
virtual void computeProperties()
static InputParameters validParams()
const unsigned int _penalty_mode
Match concentration exactly or use the target as a minumum or maximum value.
const Real _penalty
Nucleation free energy prefactor.
DiscreteNucleation(const InputParameters &params)
Free energy penalty contribution to force the nucleation of subresolution particles.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const DiscreteNucleationMap & _map
UserObject providing a map of currently active nuclei.
std::vector< unsigned int > _op_index
map op_names indices to _args indices
const std::vector< Real > _op_values
Target concentration values.