Flow123d  JS_before_hm-929-gaeebe69
heat_model.cc
Go to the documentation of this file.
1 /*!
2  *
3  * Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License version 3 as published by the
7  * Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12  *
13  *
14  * @file heat_model.cc
15  * @brief Discontinuous Galerkin method for equation of transport with dispersion.
16  * @author Jan Stebel
17  */
18 
19 #include "input/input_type.hh"
20 #include "mesh/mesh.h"
21 #include "mesh/accessors.hh"
22 //#include "transport/transport_operator_splitting.hh"
23 #include "heat_model.hh"
24 #include "tools/unit_si.hh"
25 #include "coupling/balance.hh"
26 
27 
28 
29 using namespace std;
30 using namespace Input::Type;
31 
32 
33 
34 
35 
36 
37 
38 
40  return Selection("Heat_BC_Type", "Types of boundary conditions for heat transfer model.")
41  .add_value(bc_inflow, "inflow",
42  "Default heat transfer boundary condition.\n"
43  "On water inflow (($(q_w \\le 0)$)), total energy flux is given by the reference temperature 'bc_temperature'. "
44  "On water outflow we prescribe zero diffusive flux, "
45  "i.e. the energy flows out only due to advection.")
46  .add_value(bc_dirichlet, "dirichlet",
47  "Dirichlet boundary condition (($T = T_D $)).\n"
48  "The prescribed temperature (($T_D$)) is specified by the field 'bc_temperature'.")
49  .add_value(bc_total_flux, "total_flux",
50  "Total energy flux boundary condition.\n"
51  "The prescribed incoming total flux can have the general form (($\\delta(f_N+\\sigma_R(T_R-T) )$)), "
52  "where the absolute flux (($f_N$)) is specified by the field 'bc_flux', "
53  "the transition parameter (($\\sigma_R$)) by 'bc_robin_sigma', "
54  "and the reference temperature (($T_R$)) by 'bc_temperature'.")
55  .add_value(bc_diffusive_flux, "diffusive_flux",
56  "Diffusive flux boundary condition.\n"
57  "The prescribed incoming energy flux due to diffusion can have the general form (($\\delta(f_N+\\sigma_R(T_R-T) )$)), "
58  "where the absolute flux (($f_N$)) is specified by the field 'bc_flux', "
59  "the transition parameter (($\\sigma_R$)) by 'bc_robin_sigma', "
60  "and the reference temperature (($T_R$)) by 'bc_temperature'.")
61  .close();
62 }
63 
64 
66 {
67  *this+=bc_type
68  .name("bc_type")
69  .description(
70  "Type of boundary condition.")
71  .units( UnitSI::dimensionless() )
72  .input_default("\"inflow\"")
73  .input_selection( get_bc_type_selection() )
75  *this+=bc_dirichlet_value
76  .name("bc_temperature")
77  .description("Boundary value of temperature.")
78  .units( UnitSI().K() )
79  .input_default("0.0")
80  .flags_add(in_rhs);
81  *this+=bc_flux
82  .disable_where(bc_type, { bc_dirichlet, bc_inflow })
83  .name("bc_flux")
84  .description("Flux in Neumann boundary condition.")
85  .units( UnitSI().kg().m().s(-1).md() )
86  .input_default("0.0")
87  .flags_add(FieldFlag::in_rhs);
88  *this+=bc_robin_sigma
89  .disable_where(bc_type, { bc_dirichlet, bc_inflow })
90  .name("bc_robin_sigma")
91  .description("Conductivity coefficient in Robin boundary condition.")
92  .units( UnitSI().m(4).s(-1).md() )
93  .input_default("0.0")
94  .flags_add(FieldFlag::in_rhs & FieldFlag::in_main_matrix);
95 
96  *this+=init_temperature
97  .name("init_temperature")
98  .description("Initial temperature.")
99  .units( UnitSI().K() )
100  .input_default("0.0");
101 
102  *this+=porosity
103  .name("porosity")
104  .description("Porosity.")
105  .units( UnitSI::dimensionless() )
106  .input_default("1.0")
107  .flags_add(in_main_matrix & in_time_term)
108  .set_limits(0.0);
109 
110  *this+=water_content
111  .name("water_content")
112  .units( UnitSI::dimensionless() )
113  .input_default("1.0")
114  .flags_add(input_copy & in_main_matrix & in_time_term);
115 
116  *this+=fluid_density
117  .name("fluid_density")
118  .description("Density of fluid.")
119  .units( UnitSI().kg().m(-3) )
120  .input_default("1000")
121  .flags_add(in_main_matrix & in_time_term);
122 
123  *this+=fluid_heat_capacity
124  .name("fluid_heat_capacity")
125  .description("Heat capacity of fluid.")
126  .units( UnitSI::J() * UnitSI().kg(-1).K(-1) )
127  .flags_add(in_main_matrix & in_time_term);
128 
129  *this+=fluid_heat_conductivity
130  .name("fluid_heat_conductivity")
131  .description("Heat conductivity of fluid.")
132  .units( UnitSI::W() * UnitSI().m(-1).K(-1) )
133  .flags_add(in_main_matrix)
134  .set_limits(0.0);
135 
136 
137  *this+=solid_density
138  .name("solid_density")
139  .description("Density of solid (rock).")
140  .units( UnitSI().kg().m(-3) )
141  .flags_add(in_time_term);
142 
143  *this+=solid_heat_capacity
144  .name("solid_heat_capacity")
145  .description("Heat capacity of solid (rock).")
146  .units( UnitSI::J() * UnitSI().kg(-1).K(-1) )
147  .flags_add(in_time_term);
148 
149  *this+=solid_heat_conductivity
150  .name("solid_heat_conductivity")
151  .description("Heat conductivity of solid (rock).")
152  .units( UnitSI::W() * UnitSI().m(-1).K(-1) )
153  .flags_add(in_main_matrix)
154  .set_limits(0.0);
155 
156  *this+=disp_l
157  .name("disp_l")
158  .description("Longitudinal heat dispersivity in fluid.")
159  .units( UnitSI().m() )
160  .input_default("0.0")
161  .flags_add(in_main_matrix);
162 
163  *this+=disp_t
164  .name("disp_t")
165  .description("Transverse heat dispersivity in fluid.")
166  .units( UnitSI().m() )
167  .input_default("0.0")
168  .flags_add(in_main_matrix);
169 
170  *this+=fluid_thermal_source
171  .name("fluid_thermal_source")
172  .description("Density of thermal source in fluid.")
173  .units( UnitSI::W() * UnitSI().m(-3) )
174  .input_default("0.0")
175  .flags_add(in_rhs);
176 
177  *this+=solid_thermal_source
178  .name("solid_thermal_source")
179  .description("Density of thermal source in solid.")
180  .units( UnitSI::W() * UnitSI().m(-3) )
181  .input_default("0.0")
182  .flags_add(in_rhs);
183 
184  *this+=fluid_heat_exchange_rate
185  .name("fluid_heat_exchange_rate")
186  .description("Heat exchange rate of source in fluid.")
187  .units( UnitSI().s(-1) )
188  .input_default("0.0")
189  .flags_add(in_rhs);
190 
191  *this+=solid_heat_exchange_rate
192  .name("solid_heat_exchange_rate")
193  .description("Heat exchange rate of source in solid.")
194  .units( UnitSI().s(-1) )
195  .input_default("0.0")
196  .flags_add(in_rhs);
197 
198  *this+=fluid_ref_temperature
199  .name("fluid_ref_temperature")
200  .description("Reference temperature of source in fluid.")
201  .units( UnitSI().K() )
202  .input_default("0.0")
203  .flags_add(in_rhs);
204 
205  *this+=solid_ref_temperature
206  .name("solid_ref_temperature")
207  .description("Reference temperature in solid.")
208  .units( UnitSI().K() )
209  .input_default("0.0")
210  .flags_add(in_rhs);
211 
212  *this+=cross_section
213  .name("cross_section")
214  .units( UnitSI().m(3).md() )
215  .flags(input_copy & in_time_term & in_main_matrix);
216 
217  *this+=output_field
218  .name("temperature")
219  .description("Temperature solution.")
220  .units( UnitSI().K() )
221  .flags(equation_result);
222 }
223 
224 
225 
226 IT::Record HeatTransferModel::get_input_type(const string &implementation, const string &description)
227 {
228  return IT::Record(
229  std::string(ModelEqData::name()) + "_" + implementation,
230  description + " for heat transfer.")
233  .declare_key("balance", Balance::get_input_type(), Default("{}"),
234  "Settings for computing balance.")
235  .declare_key("output_stream", OutputTime::get_input_type(), Default("{}"),
236  "Parameters of output stream.");
237 }
238 
239 
241 {
242  // Return empty selection just to provide model specific selection name and description.
243  // The fields are added by TransportDG using an auxiliary selection.
244  return IT::Selection(
245  std::string(ModelEqData::name()) + "_DG_output_fields",
246  "Selection of output fields for Heat Transfer DG model.");
247 }
248 
249 
251  AdvectionProcessBase(mesh, in_rec),
252  flux_changed(true)
253 {
254  time_ = new TimeGovernor(in_rec.val<Input::Record>("time"));
255  ASSERT( time_->is_default() == false ).error("Missing key 'time' in Heat_AdvectionDiffusion_DG.");
256  substances_.initialize({""});
257 
258  output_stream_ = OutputTime::create_output_stream("heat", in_rec.val<Input::Record>("output_stream"), time().get_unit_string());
259  //output_stream_->add_admissible_field_names(in_rec.val<Input::Array>("output_fields"));
260 
261  balance_ = std::make_shared<Balance>("energy", mesh_);
262  balance_->init_from_input(in_rec.val<Input::Record>("balance"), *time_);
263  // initialization of balance object
264  subst_idx = {balance_->add_quantity("energy")};
265  balance_->units(UnitSI().m(2).kg().s(-2));
266 }
267 
268 
270 {
271  output_stream_->write_time_frame();
272 }
273 
274 
276  const ElementAccessor<3> &ele_acc,
277  std::vector<double> &mm_coef)
278 {
279  vector<double> elem_csec(point_list.size()),
280  por(point_list.size()),
281  f_rho(point_list.size()),
282  s_rho(point_list.size()),
283  f_c(point_list.size()),
284  s_c(point_list.size());
285 
286  data().cross_section.value_list(point_list, ele_acc, elem_csec);
287  data().porosity.value_list(point_list, ele_acc, por);
288  data().fluid_density.value_list(point_list, ele_acc, f_rho);
289  data().fluid_heat_capacity.value_list(point_list, ele_acc, f_c);
290  data().solid_density.value_list(point_list, ele_acc, s_rho);
291  data().solid_heat_capacity.value_list(point_list, ele_acc, s_c);
292 
293  for (unsigned int i=0; i<point_list.size(); i++)
294  mm_coef[i] = elem_csec[i]*(por[i]*f_rho[i]*f_c[i] + (1.-por[i])*s_rho[i]*s_c[i]);
295 }
296 
297 
299  const std::vector<arma::vec3> &velocity,
300  const ElementAccessor<3> &ele_acc,
303 {
304  const unsigned int qsize = point_list.size();
305  std::vector<double> f_rho(qsize), f_cap(qsize), f_cond(qsize),
306  s_cond(qsize), por(qsize), csection(qsize), disp_l(qsize), disp_t(qsize);
307 
308  data().fluid_density.value_list(point_list, ele_acc, f_rho);
309  data().fluid_heat_capacity.value_list(point_list, ele_acc, f_cap);
310  data().fluid_heat_conductivity.value_list(point_list, ele_acc, f_cond);
311  data().solid_heat_conductivity.value_list(point_list, ele_acc, s_cond);
312  data().disp_l.value_list(point_list, ele_acc, disp_l);
313  data().disp_t.value_list(point_list, ele_acc, disp_t);
314  data().porosity.value_list(point_list, ele_acc, por);
315  data().cross_section.value_list(point_list, ele_acc, csection);
316 
317  for (unsigned int k=0; k<qsize; k++) {
318  ad_coef[0][k] = velocity[k]*f_rho[k]*f_cap[k];
319 
320  // dispersive part of thermal diffusion
321  // Note that the velocity vector is in fact the Darcian flux,
322  // so to obtain |v| we have to divide vnorm by porosity and cross_section.
323  double vnorm = arma::norm(velocity[k], 2);
324  if (fabs(vnorm) > 0)
325  for (int i=0; i<3; i++)
326  for (int j=0; j<3; j++)
327  dif_coef[0][k](i,j) = ((velocity[k][i]/vnorm)*(velocity[k][j]/vnorm)*(disp_l[k]-disp_t[k]) + disp_t[k]*(i==j?1:0))
328  *vnorm*f_rho[k]*f_cond[k];
329  else
330  dif_coef[0][k].zeros();
331 
332  // conductive part of thermal diffusion
333  dif_coef[0][k] += csection[k]*(por[k]*f_cond[k] + (1.-por[k])*s_cond[k])*arma::eye(3,3);
334  }
335 }
336 
337 
339  const ElementAccessor<3> &ele_acc,
340  std::vector<std::vector<double> > &init_values)
341 {
342  data().init_temperature.value_list(point_list, ele_acc, init_values[0]);
343 }
344 
345 
347  arma::uvec &bc_types)
348 {
349  // Currently the bc types for HeatTransfer are numbered in the same way as in TransportDG.
350  // In general we should use some map here.
351  bc_types = { data().bc_type.value(ele_acc.centre(), ele_acc) };
352 }
353 
354 
355 void HeatTransferModel::get_flux_bc_data(unsigned int index,
356  const Armor::array &point_list,
357  const ElementAccessor<3> &ele_acc,
358  std::vector< double > &bc_flux,
359  std::vector< double > &bc_sigma,
360  std::vector< double > &bc_ref_value)
361 {
362  data().bc_flux.value_list(point_list, ele_acc, bc_flux);
363  data().bc_robin_sigma.value_list(point_list, ele_acc, bc_sigma);
364  data().bc_dirichlet_value[index].value_list(point_list, ele_acc, bc_ref_value);
365 
366  // Change sign in bc_flux since internally we work with outgoing fluxes.
367  for (auto f : bc_flux) f = -f;
368 }
369 
371  const Armor::array &point_list,
372  const ElementAccessor<3> &ele_acc,
373  std::vector< double > &bc_sigma)
374 {
375  data().bc_robin_sigma.value_list(point_list, ele_acc, bc_sigma);
376 }
377 
378 
380  const ElementAccessor<3> &ele_acc,
381  std::vector<std::vector<double> > &sources_value,
382  std::vector<std::vector<double> > &sources_density,
383  std::vector<std::vector<double> > &sources_sigma)
384 {
385  const unsigned int qsize = point_list.size();
386  std::vector<double> por(qsize), csection(qsize), f_rho(qsize), s_rho(qsize), f_cap(qsize), s_cap(qsize),
387  f_source(qsize), s_source(qsize), f_sigma(qsize), s_sigma(qsize), f_temp(qsize), s_temp(qsize);
388  data().porosity.value_list(point_list, ele_acc, por);
389  data().cross_section.value_list(point_list, ele_acc, csection);
390  data().fluid_density.value_list(point_list, ele_acc, f_rho);
391  data().solid_density.value_list(point_list, ele_acc, s_rho);
392  data().fluid_heat_capacity.value_list(point_list, ele_acc, f_cap);
393  data().solid_heat_capacity.value_list(point_list, ele_acc, s_cap);
394  data().fluid_thermal_source.value_list(point_list, ele_acc, f_source);
395  data().solid_thermal_source.value_list(point_list, ele_acc, s_source);
396  data().fluid_heat_exchange_rate.value_list(point_list, ele_acc, f_sigma);
397  data().solid_heat_exchange_rate.value_list(point_list, ele_acc, s_sigma);
398  data().fluid_ref_temperature.value_list(point_list, ele_acc, f_temp);
399  data().solid_ref_temperature.value_list(point_list, ele_acc, s_temp);
400 
401  sources_density[0].resize(point_list.size());
402  sources_sigma[0].resize(point_list.size());
403  sources_value[0].resize(point_list.size());
404  for (unsigned int k=0; k<point_list.size(); k++)
405  {
406  sources_density[0][k] = csection[k]*(por[k]*f_source[k] + (1.-por[k])*s_source[k]);
407  sources_sigma[0][k] = csection[k]*(por[k]*f_rho[k]*f_cap[k]*f_sigma[k] + (1.-por[k])*s_rho[k]*s_cap[k]*s_sigma[k]);
408  if (fabs(sources_sigma[0][k]) > numeric_limits<double>::epsilon())
409  sources_value[0][k] = csection[k]*(por[k]*f_rho[k]*f_cap[k]*f_sigma[k]*f_temp[k]
410  + (1.-por[k])*s_rho[k]*s_cap[k]*s_sigma[k]*s_temp[k])/sources_sigma[0][k];
411  else
412  sources_value[0][k] = 0;
413  }
414 }
415 
416 
418  const ElementAccessor<3> &ele_acc,
419  std::vector<std::vector<double> > &sources_sigma)
420 {
421  const unsigned int qsize = point_list.size();
422  std::vector<double> por(qsize), csection(qsize), f_rho(qsize), s_rho(qsize), f_cap(qsize), s_cap(qsize),
423  f_source(qsize), s_source(qsize), f_sigma(qsize), s_sigma(qsize), f_temp(qsize), s_temp(qsize);
424  data().porosity.value_list(point_list, ele_acc, por);
425  data().cross_section.value_list(point_list, ele_acc, csection);
426  data().fluid_density.value_list(point_list, ele_acc, f_rho);
427  data().solid_density.value_list(point_list, ele_acc, s_rho);
428  data().fluid_heat_capacity.value_list(point_list, ele_acc, f_cap);
429  data().solid_heat_capacity.value_list(point_list, ele_acc, s_cap);
430  data().fluid_heat_exchange_rate.value_list(point_list, ele_acc, f_sigma);
431  data().solid_heat_exchange_rate.value_list(point_list, ele_acc, s_sigma);
432  sources_sigma[0].resize(point_list.size());
433  for (unsigned int k=0; k<point_list.size(); k++)
434  {
435  sources_sigma[0][k] = csection[k]*(por[k]*f_rho[k]*f_cap[k]*f_sigma[k] + (1.-por[k])*s_rho[k]*s_cap[k]*s_sigma[k]);
436  }
437 }
438 
439 
441 {}
442 
443 
444 
445 
TimeGovernor & time()
Definition: equation.hh:151
vector< unsigned int > subst_idx
List of indices used to call balance methods for a set of quantities.
Definition: heat_model.hh:279
Field< 3, FieldValue< 3 >::Scalar > solid_heat_capacity
Heat capacity of solid.
Definition: heat_model.hh:132
static const Input::Type::Record & get_input_type()
Main balance input record type.
Definition: balance.cc:50
Field< 3, FieldValue< 3 >::Scalar > fluid_density
Density of fluid.
Definition: heat_model.hh:124
unsigned int size() const
Definition: armor.hh:718
void compute_advection_diffusion_coefficients(const Armor::array &point_list, const std::vector< arma::vec3 > &velocity, const ElementAccessor< 3 > &ele_acc, std::vector< std::vector< arma::vec3 > > &ad_coef, std::vector< std::vector< arma::mat33 > > &dif_coef) override
Definition: heat_model.cc:298
static constexpr Mask in_main_matrix
A field is part of main "stiffness matrix" of the equation.
Definition: field_flag.hh:49
Field< 3, FieldValue< 3 >::Scalar > disp_t
Transversal heat dispersivity.
Definition: heat_model.hh:138
Field< 3, FieldValue< 3 >::Scalar > cross_section
Pointer to DarcyFlow field cross_section.
Definition: heat_model.hh:153
static const Input::Type::Record & get_input_type()
The specification of output stream.
Definition: output_time.cc:37
Class Input::Type::Default specifies default value of keys of a Input::Type::Record.
Definition: type_record.hh:61
static IT::Selection get_output_selection()
Definition: heat_model.cc:240
void initialize(const Input::Array &in_array)
Read from input array.
Definition: substance.cc:58
void get_flux_bc_sigma(unsigned int index, const Armor::array &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< double > &bc_sigma) override
Return transition coefficient for flux b.c.
Definition: heat_model.cc:370
Field< 3, FieldValue< 3 >::Scalar > fluid_heat_exchange_rate
Heat exchange rate in fluid.
Definition: heat_model.hh:144
static std::shared_ptr< OutputTime > create_output_stream(const std::string &equation_name, const Input::Record &in_rec, std::string unit_str)
This method delete all object instances of class OutputTime stored in output_streams vector...
Definition: output_time.cc:184
Field< 3, FieldValue< 3 >::Scalar > solid_heat_exchange_rate
Heat exchange rate in solid.
Definition: heat_model.hh:146
Definition: mesh.h:78
BCMultiField< 3, FieldValue< 3 >::Scalar > bc_dirichlet_value
Dirichlet boundary condition for temperature.
Definition: heat_model.hh:112
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library...
Definition: asserts.hh:347
BCField< 3, FieldValue< 3 >::Enum > bc_type
Type of boundary condition (see also BC_Type)
Definition: heat_model.hh:110
void compute_init_cond(const Armor::array &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< std::vector< double > > &init_values) override
Definition: heat_model.cc:338
static const Input::Type::Selection & get_bc_type_selection()
Definition: heat_model.cc:39
Field< 3, FieldValue< 3 >::Scalar > fluid_heat_capacity
Heat capacity of fluid.
Definition: heat_model.hh:126
Basic time management functionality for unsteady (and steady) solvers (class Equation).
BCField< 3, FieldValue< 3 >::Scalar > bc_flux
Flux value in total/diffusive flux b.c.
Definition: heat_model.hh:114
void get_bc_type(const ElementAccessor< 3 > &ele_acc, arma::uvec &bc_types) override
Definition: heat_model.cc:346
Field< 3, FieldValue< 3 >::Scalar > porosity
Porosity of solid.
Definition: heat_model.hh:120
Field< 3, FieldValue< 3 >::Scalar > fluid_thermal_source
Thermal source in fluid.
Definition: heat_model.hh:140
static Input::Type::Record & record_template()
Template Record with common keys for derived equations.
Definition: equation.cc:36
void compute_source_coefficients(const Armor::array &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< std::vector< double > > &sources_conc, std::vector< std::vector< double > > &sources_density, std::vector< std::vector< double > > &sources_sigma) override
Definition: heat_model.cc:379
arma::vec::fixed< spacedim > centre() const
Computes the barycenter.
virtual Record & derive_from(Abstract &parent)
Method to derive new Record from an AbstractRecord parent.
Definition: type_record.cc:196
Field< 3, FieldValue< 3 >::Scalar > fluid_heat_conductivity
Heat conductivity of fluid.
Definition: heat_model.hh:128
static Input::Type::Abstract & get_input_type()
Common specification of the input record for secondary equations.
void compute_mass_matrix_coefficient(const Armor::array &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< double > &mm_coef) override
Definition: heat_model.cc:275
#define FMT_UNUSED
Definition: posix.h:75
Field< 3, FieldValue< 3 >::Scalar > fluid_ref_temperature
Reference temperature in fluid.
Definition: heat_model.hh:148
void get_flux_bc_data(unsigned int index, const Armor::array &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< double > &bc_flux, std::vector< double > &bc_sigma, std::vector< double > &bc_ref_value) override
Return data for diffusive or total flux b.c.
Definition: heat_model.cc:355
Field< 3, FieldValue< 3 >::Scalar > init_temperature
Initial temperature.
Definition: heat_model.hh:118
Field< 3, FieldValue< 3 >::Scalar > solid_thermal_source
Thermal source in solid.
Definition: heat_model.hh:142
static UnitSI & W()
Returns Watt.
Definition: unit_si.cc:45
Accessor to the data with type Type::Record.
Definition: accessors.hh:292
const Ret val(const string &key) const
static UnitSI & J()
Returns Joule.
Definition: unit_si.cc:40
Mesh * mesh_
Definition: equation.hh:220
Selection & add_value(const int value, const std::string &key, const std::string &description="", TypeBase::attribute_map attributes=TypeBase::attribute_map())
Adds one new value with name given by key to the Selection.
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm) const
Definition: field.hh:434
std::shared_ptr< Balance > balance_
object for calculation and writing the mass balance to file.
Definition: equation.hh:232
Record & declare_key(const string &key, std::shared_ptr< TypeBase > type, const Default &default_value, const string &description, TypeBase::attribute_map key_attributes=TypeBase::attribute_map())
Declares a new key of the Record.
Definition: type_record.cc:503
Field< 3, FieldValue< 3 >::Scalar > solid_heat_conductivity
Heat conductivity of solid.
Definition: heat_model.hh:134
SubstanceList substances_
Transported substances.
Definition: heat_model.hh:276
static constexpr Mask in_rhs
A field is part of the right hand side of the equation.
Definition: field_flag.hh:51
virtual void value_list(const Armor::array &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list) const
Definition: field.hh:448
Record & copy_keys(const Record &other)
Copy keys from other record.
Definition: type_record.cc:216
void compute_sources_sigma(const Armor::array &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< std::vector< double > > &sources_sigma) override
Definition: heat_model.cc:417
Field< 3, FieldValue< 3 >::Scalar > solid_ref_temperature
Reference temperature in solid.
Definition: heat_model.hh:150
const Selection & close() const
Close the Selection, no more values can be added.
virtual ModelEqData & data()=0
Derived class should implement getter for ModelEqData instance.
~HeatTransferModel() override
Definition: heat_model.cc:440
Field< 3, FieldValue< 3 >::Scalar > solid_density
Density of solid.
Definition: heat_model.hh:130
Discontinuous Galerkin method for equation of transport with dispersion.
HeatTransferModel(Mesh &mesh, const Input::Record in_rec)
Definition: heat_model.cc:250
Record type proxy class.
Definition: type_record.hh:182
BCField< 3, FieldValue< 3 >::Scalar > bc_robin_sigma
Transition coefficient in total/diffusive flux b.c.
Definition: heat_model.hh:116
std::shared_ptr< OutputTime > output_stream_
Definition: heat_model.hh:281
Class for representation SI units of Fields.
Definition: unit_si.hh:40
static UnitSI & dimensionless()
Returns dimensionless unit.
Definition: unit_si.cc:55
Template for classes storing finite set of named values.
void output_data() override
Write computed fields.
Definition: heat_model.cc:269
Field< 3, FieldValue< 3 >::Scalar > disp_l
Longitudal heat dispersivity.
Definition: heat_model.hh:136
TimeGovernor * time_
Definition: equation.hh:221