https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
22public:
24
25 DiscreteNucleation(const InputParameters & params);
26
27 virtual void computeProperties();
28
29protected:
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.
Free energy penalty contribution to force the nucleation of subresolution particles.
const DiscreteNucleationMap & _map
UserObject providing a map of currently active nuclei.
const std::vector< Real > _op_values
Target concentration values.
virtual void computeProperties()
static InputParameters validParams()
const Real _penalty
Nucleation free energy prefactor.
const unsigned int _penalty_mode
Match concentration exactly or use the target as a minumum or maximum value.
std::vector< unsigned int > _op_index
map op_names indices to _args indices