moltres
Loading...
Searching...
No Matches
DelayedNeutronSource.h
Go to the documentation of this file.
1#pragma once
2
3#include "Kernel.h"
5
6class DelayedNeutronSource : public Kernel, public ScalarTransportBase
7{
8public:
9 DelayedNeutronSource(const InputParameters & parameters);
10
11 static InputParameters validParams();
12
13protected:
14 virtual Real computeQpResidual() override;
15 virtual Real computeQpJacobian() override;
16 virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
17
18 const MaterialProperty<std::vector<Real>> & _decay_constant;
19 const MaterialProperty<std::vector<Real>> & _d_decay_constant_d_temp;
20 unsigned int _group;
21 const MaterialProperty<std::vector<Real>> & _chi_d;
22 // todo add the jacobian (it's going to be negligible tho)
23
25 unsigned int _temp_id;
26 const VariableValue & _temp;
27 std::vector<const VariableValue *> _pre_concs;
28 std::vector<unsigned int> _pre_ids;
29};
Definition DelayedNeutronSource.h:7
unsigned int _group
Definition DelayedNeutronSource.h:20
const MaterialProperty< std::vector< Real > > & _chi_d
Definition DelayedNeutronSource.h:21
unsigned int _temp_id
Definition DelayedNeutronSource.h:25
std::vector< const VariableValue * > _pre_concs
Definition DelayedNeutronSource.h:27
unsigned int _num_precursor_groups
Definition DelayedNeutronSource.h:24
std::vector< unsigned int > _pre_ids
Definition DelayedNeutronSource.h:28
const MaterialProperty< std::vector< Real > > & _decay_constant
Definition DelayedNeutronSource.h:18
const MaterialProperty< std::vector< Real > > & _d_decay_constant_d_temp
Definition DelayedNeutronSource.h:19
virtual Real computeQpResidual() override
Definition DelayedNeutronSource.C:45
virtual Real computeQpJacobian() override
Definition DelayedNeutronSource.C:55
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
Definition DelayedNeutronSource.C:61
static InputParameters validParams()
Definition DelayedNeutronSource.C:6
const VariableValue & _temp
Definition DelayedNeutronSource.h:26
Definition ScalarTransportBase.h:13