https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearFVPhaseChangeSource.h
Go to the documentation of this file.
1#pragma once
2
4#include "NS.h"
5#include "MooseFunctor.h"
6#include "TimeIntegrator.h"
7
13{
14public:
16
19
20 Real computeMatrixContribution() override;
22
23 virtual void setCurrentElemInfo(const ElemInfo * elem_info) override;
24
25protected:
28
31
34
37
40 const bool _smooth;
41
45
46private:
51 Real computeDfDT(const Real T, const Real T_sol, const Real dT_pc) const;
52
54 std::vector<Real> _factor_history;
55
59 std::vector<Moose::StateArg> _state_args;
60};
const double T
Finite-volume elemental kernel that adds the apparent heat-capacity phase-change source term: rho * L...
virtual void setCurrentElemInfo(const ElemInfo *elem_info) override
static InputParameters validParams()
std::vector< Moose::StateArg > _state_args
State args, the args which will help us fetch the different states of the material property multiplie...
const Moose::Functor< Real > & _rho
Density.
std::vector< Real > _factor_history
Current and older values of the material property multiplier.
const Moose::Functor< Real > & _T_solidus
Solidus Temperature.
const Moose::Functor< Real > & _T_liquidus
Liquidus Temperature.
const TimeIntegrator & _time_integrator
The time integrator to use in this kernel, will provide information on how many states are required i...
const Moose::Functor< Real > & _L
Latent heat.
const bool _smooth
Whether to use the smoothstep liquid fraction (true, default) or the linear ("sharp") liquid fraction...
Real computeDfDT(const Real T, const Real T_sol, const Real dT_pc) const
Compute df/dT at temperature T for the selected liquid-fraction shape.