Flow123d  last_with_con_2.0.0-4-g42e6930
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 "fields/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 
109  *this+=water_content
110  .name("water_content")
111  .units( UnitSI::dimensionless() )
112  .input_default("1.0")
113  .flags_add(input_copy & in_main_matrix & in_time_term);
114 
115  *this+=fluid_density
116  .name("fluid_density")
117  .description("Density of fluid.")
118  .units( UnitSI().kg().m(-3) )
119  .flags_add(in_main_matrix & in_time_term);
120 
121  *this+=fluid_heat_capacity
122  .name("fluid_heat_capacity")
123  .description("Heat capacity of fluid.")
124  .units( UnitSI::J() * UnitSI().kg(-1).K(-1) )
125  .flags_add(in_main_matrix & in_time_term);
126 
127  *this+=fluid_heat_conductivity
128  .name("fluid_heat_conductivity")
129  .description("Heat conductivity of fluid.")
130  .units( UnitSI::W() * UnitSI().m(-1).K(-1) )
131  .flags_add(in_main_matrix);
132 
133 
134  *this+=solid_density
135  .name("solid_density")
136  .description("Density of solid (rock).")
137  .units( UnitSI().kg().m(-3) )
138  .flags_add(in_time_term);
139 
140  *this+=solid_heat_capacity
141  .name("solid_heat_capacity")
142  .description("Heat capacity of solid (rock).")
143  .units( UnitSI::J() * UnitSI().kg(-1).K(-1) )
144  .flags_add(in_time_term);
145 
146  *this+=solid_heat_conductivity
147  .name("solid_heat_conductivity")
148  .description("Heat conductivity of solid (rock).")
149  .units( UnitSI::W() * UnitSI().m(-1).K(-1) )
150  .flags_add(in_main_matrix);
151 
152  *this+=disp_l
153  .name("disp_l")
154  .description("Longitudal heat dispersivity in fluid.")
155  .units( UnitSI().m() )
156  .input_default("0.0")
157  .flags_add(in_main_matrix);
158 
159  *this+=disp_t
160  .name("disp_t")
161  .description("Transversal heat dispersivity in fluid.")
162  .units( UnitSI().m() )
163  .input_default("0.0")
164  .flags_add(in_main_matrix);
165 
166  *this+=fluid_thermal_source
167  .name("fluid_thermal_source")
168  .description("Thermal source density in fluid.")
169  .units( UnitSI::W() * UnitSI().m(-3) )
170  .input_default("0.0")
171  .flags_add(in_rhs);
172 
173  *this+=solid_thermal_source
174  .name("solid_thermal_source")
175  .description("Thermal source density in solid.")
176  .units( UnitSI::W() * UnitSI().m(-3) )
177  .input_default("0.0")
178  .flags_add(in_rhs);
179 
180  *this+=fluid_heat_exchange_rate
181  .name("fluid_heat_exchange_rate")
182  .description("Heat exchange rate in fluid.")
183  .units( UnitSI().s(-1) )
184  .input_default("0.0")
185  .flags_add(in_rhs);
186 
187  *this+=solid_heat_exchange_rate
188  .name("solid_heat_exchange_rate")
189  .description("Heat exchange rate of source in solid.")
190  .units( UnitSI().s(-1) )
191  .input_default("0.0")
192  .flags_add(in_rhs);
193 
194  *this+=fluid_ref_temperature
195  .name("fluid_ref_temperature")
196  .description("Reference temperature of source in fluid.")
197  .units( UnitSI().K() )
198  .input_default("0.0")
199  .flags_add(in_rhs);
200 
201  *this+=solid_ref_temperature
202  .name("solid_ref_temperature")
203  .description("Reference temperature in solid.")
204  .units( UnitSI().K() )
205  .input_default("0.0")
206  .flags_add(in_rhs);
207 
208  *this+=cross_section
209  .name("cross_section")
210  .units( UnitSI().m(3).md() )
211  .flags(input_copy & in_time_term & in_main_matrix);
212 
213  *this+=output_field
214  .name("temperature")
215  .units( UnitSI().K() )
216  .flags(equation_result);
217 }
218 
219 
220 
221 IT::Record HeatTransferModel::get_input_type(const string &implementation, const string &description)
222 {
223  return IT::Record(
224  std::string(ModelEqData::name()) + "_" + implementation,
225  description + " for heat transfer.")
227  .declare_key("time", TimeGovernor::get_input_type(), Default::obligatory(),
228  "Time governor setting for the secondary equation.")
229  .declare_key("balance", Balance::get_input_type(), Default("{}"),
230  "Settings for computing balance.")
231  .declare_key("output_stream", OutputTime::get_input_type(), Default::obligatory(),
232  "Parameters of output stream.");
233 }
234 
235 
237 {
238  // Return empty selection just to provide model specific selection name and description.
239  // The fields are added by TransportDG using an auxiliary selection.
240  return IT::Selection(
241  std::string(ModelEqData::name()) + "_DG_output_fields",
242  "Selection of output fields for Heat Transfer DG model.");
243 }
244 
245 
247  AdvectionProcessBase(mesh, in_rec),
248  flux_changed(true),
249  mh_dh(nullptr)
250 {
251  time_ = new TimeGovernor(in_rec.val<Input::Record>("time"));
252  substances_.initialize({""});
253 
254  output_stream_ = OutputTime::create_output_stream("heat", *mesh_, in_rec.val<Input::Record>("output_stream"));
255  //output_stream_->add_admissible_field_names(in_rec.val<Input::Array>("output_fields"));
256 
257  balance_ = std::make_shared<Balance>("energy", mesh_);
258  balance_->init_from_input(in_rec.val<Input::Record>("balance"), *time_);
259  // initialization of balance object
260  if (balance_)
261  {
262  subst_idx = {balance_->add_quantity("energy")};
263  balance_->units(UnitSI().m(2).kg().s(-2));
264  }
265 }
266 
267 
269 {
270  output_stream_->write_time_frame();
271  if (balance_ != nullptr)
272  {
273  if (balance_->is_current(time_->step())) {
275  balance_->output(time_->t());
276  }
277  }
278 }
279 
280 
282  const ElementAccessor<3> &ele_acc,
283  std::vector<double> &mm_coef)
284 {
285  vector<double> elem_csec(point_list.size()),
286  por(point_list.size()),
287  f_rho(point_list.size()),
288  s_rho(point_list.size()),
289  f_c(point_list.size()),
290  s_c(point_list.size());
291 
292  data().cross_section.value_list(point_list, ele_acc, elem_csec);
293  data().porosity.value_list(point_list, ele_acc, por);
294  data().fluid_density.value_list(point_list, ele_acc, f_rho);
295  data().fluid_heat_capacity.value_list(point_list, ele_acc, f_c);
296  data().solid_density.value_list(point_list, ele_acc, s_rho);
297  data().solid_heat_capacity.value_list(point_list, ele_acc, s_c);
298 
299  for (unsigned int i=0; i<point_list.size(); i++)
300  mm_coef[i] = elem_csec[i]*(por[i]*f_rho[i]*f_c[i] + (1.-por[i])*s_rho[i]*s_c[i]);
301 }
302 
303 
305  const std::vector<arma::vec3> &velocity,
306  const ElementAccessor<3> &ele_acc,
309 {
310  const unsigned int qsize = point_list.size();
311  std::vector<double> f_rho(qsize), f_cap(qsize), f_cond(qsize),
312  s_cond(qsize), por(qsize), csection(qsize), disp_l(qsize), disp_t(qsize);
313 
314  data().fluid_density.value_list(point_list, ele_acc, f_rho);
315  data().fluid_heat_capacity.value_list(point_list, ele_acc, f_cap);
316  data().fluid_heat_conductivity.value_list(point_list, ele_acc, f_cond);
317  data().solid_heat_conductivity.value_list(point_list, ele_acc, s_cond);
318  data().disp_l.value_list(point_list, ele_acc, disp_l);
319  data().disp_t.value_list(point_list, ele_acc, disp_t);
320  data().porosity.value_list(point_list, ele_acc, por);
321  data().cross_section.value_list(point_list, ele_acc, csection);
322 
323  for (unsigned int k=0; k<qsize; k++) {
324  ad_coef[0][k] = velocity[k]*f_rho[k]*f_cap[k];
325 
326  // dispersive part of thermal diffusion
327  // Note that the velocity vector is in fact the Darcian flux,
328  // so to obtain |v| we have to divide vnorm by porosity and cross_section.
329  double vnorm = arma::norm(velocity[k], 2);
330  if (fabs(vnorm) > 0)
331  for (int i=0; i<3; i++)
332  for (int j=0; j<3; j++)
333  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))
334  *vnorm*f_rho[k]*f_cond[k];
335  else
336  dif_coef[0][k].zeros();
337 
338  // conductive part of thermal diffusion
339  dif_coef[0][k] += csection[k]*(por[k]*f_cond[k] + (1.-por[k])*s_cond[k])*arma::eye(3,3);
340  }
341 }
342 
343 
345  const ElementAccessor<3> &ele_acc,
346  std::vector< arma::vec > &init_values)
347 {
348  vector<double> init_value(point_list.size());
349  data().init_temperature.value_list(point_list, ele_acc, init_value);
350  for (unsigned int i=0; i<point_list.size(); i++)
351  init_values[i] = init_value[i];
352 }
353 
354 
356  arma::uvec &bc_types)
357 {
358  // Currently the bc types for HeatTransfer are numbered in the same way as in TransportDG.
359  // In general we should use some map here.
360  bc_types = { data().bc_type.value(ele_acc.centre(), ele_acc) };
361 }
362 
363 
364 void HeatTransferModel::get_flux_bc_data(unsigned int index,
365  const std::vector<arma::vec3> &point_list,
366  const ElementAccessor<3> &ele_acc,
367  std::vector< double > &bc_flux,
368  std::vector< double > &bc_sigma,
369  std::vector< double > &bc_ref_value)
370 {
371  data().bc_flux.value_list(point_list, ele_acc, bc_flux);
372  data().bc_robin_sigma.value_list(point_list, ele_acc, bc_sigma);
373  data().bc_dirichlet_value[index].value_list(point_list, ele_acc, bc_ref_value);
374 
375  // Change sign in bc_flux since internally we work with outgoing fluxes.
376  for (auto f : bc_flux) f = -f;
377 }
378 
379 void HeatTransferModel::get_flux_bc_sigma(unsigned int index,
380  const std::vector<arma::vec3> &point_list,
381  const ElementAccessor<3> &ele_acc,
382  std::vector< double > &bc_sigma)
383 {
384  data().bc_robin_sigma.value_list(point_list, ele_acc, bc_sigma);
385 }
386 
387 
389  const ElementAccessor<3> &ele_acc,
390  std::vector<arma::vec> &sources_value,
391  std::vector<arma::vec> &sources_density,
392  std::vector<arma::vec> &sources_sigma)
393 {
394  const unsigned int qsize = point_list.size();
395  std::vector<double> por(qsize), csection(qsize), f_rho(qsize), s_rho(qsize), f_cap(qsize), s_cap(qsize),
396  f_source(qsize), s_source(qsize), f_sigma(qsize), s_sigma(qsize), f_temp(qsize), s_temp(qsize);
397  data().porosity.value_list(point_list, ele_acc, por);
398  data().cross_section.value_list(point_list, ele_acc, csection);
399  data().fluid_density.value_list(point_list, ele_acc, f_rho);
400  data().solid_density.value_list(point_list, ele_acc, s_rho);
401  data().fluid_heat_capacity.value_list(point_list, ele_acc, f_cap);
402  data().solid_heat_capacity.value_list(point_list, ele_acc, s_cap);
403  data().fluid_thermal_source.value_list(point_list, ele_acc, f_source);
404  data().solid_thermal_source.value_list(point_list, ele_acc, s_source);
405  data().fluid_heat_exchange_rate.value_list(point_list, ele_acc, f_sigma);
406  data().solid_heat_exchange_rate.value_list(point_list, ele_acc, s_sigma);
407  data().fluid_ref_temperature.value_list(point_list, ele_acc, f_temp);
408  data().solid_ref_temperature.value_list(point_list, ele_acc, s_temp);
409 
410  for (unsigned int k=0; k<point_list.size(); k++)
411  {
412  sources_density[k].resize(1);
413  sources_sigma[k].resize(1);
414  sources_value[k].resize(1);
415 
416  sources_density[k][0] = csection[k]*(por[k]*f_source[k] + (1.-por[k])*s_source[k]);
417  sources_sigma[k][0] = 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]);
418  if (fabs(sources_sigma[k][0]) > numeric_limits<double>::epsilon())
419  sources_value[k][0] = csection[k]*(por[k]*f_rho[k]*f_cap[k]*f_sigma[k]*f_temp[k]
420  + (1.-por[k])*s_rho[k]*s_cap[k]*s_sigma[k]*s_temp[k])/sources_sigma[k][0];
421  else
422  sources_value[k][0] = 0;
423  }
424 }
425 
426 
428  const ElementAccessor<3> &ele_acc,
429  std::vector<arma::vec> &sources_sigma)
430 {
431  const unsigned int qsize = point_list.size();
432  std::vector<double> por(qsize), csection(qsize), f_rho(qsize), s_rho(qsize), f_cap(qsize), s_cap(qsize),
433  f_source(qsize), s_source(qsize), f_sigma(qsize), s_sigma(qsize), f_temp(qsize), s_temp(qsize);
434  data().porosity.value_list(point_list, ele_acc, por);
435  data().cross_section.value_list(point_list, ele_acc, csection);
436  data().fluid_density.value_list(point_list, ele_acc, f_rho);
437  data().solid_density.value_list(point_list, ele_acc, s_rho);
438  data().fluid_heat_capacity.value_list(point_list, ele_acc, f_cap);
439  data().solid_heat_capacity.value_list(point_list, ele_acc, s_cap);
440  data().fluid_heat_exchange_rate.value_list(point_list, ele_acc, f_sigma);
441  data().solid_heat_exchange_rate.value_list(point_list, ele_acc, s_sigma);
442  for (unsigned int k=0; k<point_list.size(); k++)
443  {
444  sources_sigma[k].resize(1);
445  sources_sigma[k][0] = 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]);
446  }
447 }
448 
449 
451 {}
452 
453 
454 
455 
vector< unsigned int > subst_idx
List of indices used to call balance methods for a set of quantities.
Definition: heat_model.hh:267
Field< 3, FieldValue< 3 >::Scalar > solid_heat_capacity
Heat capacity of solid.
Definition: heat_model.hh:118
void compute_sources_sigma(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< arma::vec > &sources_sigma) override
Definition: heat_model.cc:427
static const Input::Type::Record & get_input_type()
Main balance input record type.
Definition: balance.cc:42
Field< 3, FieldValue< 3 >::Scalar > fluid_density
Density of fluid.
Definition: heat_model.hh:110
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:124
Field< 3, FieldValue< 3 >::Scalar > cross_section
Pointer to DarcyFlow field cross_section.
Definition: heat_model.hh:139
static const Input::Type::Record & get_input_type()
The specification of output stream.
Definition: output_time.cc:38
Class Input::Type::Default specifies default value of keys of a Input::Type::Record.
Definition: type_record.hh:50
static IT::Selection get_output_selection()
Definition: heat_model.cc:236
void initialize(const Input::Array &in_array)
Read from input array.
Definition: substance.cc:58
Field< 3, FieldValue< 3 >::Scalar > fluid_heat_exchange_rate
Heat exchange rate in fluid.
Definition: heat_model.hh:130
Field< 3, FieldValue< 3 >::Scalar > solid_heat_exchange_rate
Heat exchange rate in solid.
Definition: heat_model.hh:132
Definition: mesh.h:95
BCMultiField< 3, FieldValue< 3 >::Scalar > bc_dirichlet_value
Dirichlet boundary condition for temperature.
Definition: heat_model.hh:98
void compute_init_cond(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< arma::vec > &init_values) override
Definition: heat_model.cc:344
const TimeStep & step(int index=-1) const
BCField< 3, FieldValue< 3 >::Enum > bc_type
Type of boundary condition (see also BC_Type)
Definition: heat_model.hh:96
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:112
double t() const
virtual void calculate_instant_balance()=0
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:100
void get_bc_type(const ElementAccessor< 3 > &ele_acc, arma::uvec &bc_types) override
Definition: heat_model.cc:355
virtual void value_list(const std::vector< Point > &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list) const
Definition: field.hh:356
Field< 3, FieldValue< 3 >::Scalar > porosity
Porosity of solid.
Definition: heat_model.hh:106
Field< 3, FieldValue< 3 >::Scalar > fluid_thermal_source
Thermal source in fluid.
Definition: heat_model.hh:126
virtual Record & derive_from(Abstract &parent)
Method to derive new Record from an AbstractRecord parent.
Definition: type_record.cc:195
Field< 3, FieldValue< 3 >::Scalar > fluid_heat_conductivity
Heat conductivity of fluid.
Definition: heat_model.hh:114
void get_flux_bc_sigma(unsigned int index, const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< double > &bc_sigma) override
Return transition coefficient for flux b.c.
Definition: heat_model.cc:379
static Input::Type::Abstract & get_input_type()
Common specification of the input record for secondary equations.
Field< 3, FieldValue< 3 >::Scalar > fluid_ref_temperature
Reference temperature in fluid.
Definition: heat_model.hh:134
void get_flux_bc_data(unsigned int index, const std::vector< arma::vec3 > &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:364
Field< 3, FieldValue< 3 >::Scalar > init_temperature
Initial temperature.
Definition: heat_model.hh:104
Field< 3, FieldValue< 3 >::Scalar > solid_thermal_source
Thermal source in solid.
Definition: heat_model.hh:128
void compute_mass_matrix_coefficient(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< double > &mm_coef) override
Definition: heat_model.cc:281
Selection & add_value(const int value, const std::string &key, const std::string &description="")
Adds one new value with name given by key to the Selection.
static UnitSI & W()
Returns Watt.
Definition: unit_si.cc:43
Accessor to the data with type Type::Record.
Definition: accessors.hh:277
const Ret val(const string &key) const
static UnitSI & J()
Returns Joule.
Definition: unit_si.cc:38
Mesh * mesh_
Definition: equation.hh:221
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm) const
Definition: field.hh:342
std::shared_ptr< Balance > balance_
object for calculation and writing the mass balance to file.
Definition: equation.hh:233
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:468
Field< 3, FieldValue< 3 >::Scalar > solid_heat_conductivity
Heat conductivity of solid.
Definition: heat_model.hh:120
SubstanceList substances_
Transported substances.
Definition: heat_model.hh:257
static constexpr Mask in_rhs
A field is part of the right hand side of the equation.
Definition: field_flag.hh:51
const double epsilon
Definition: mathfce.h:23
static std::shared_ptr< OutputTime > create_output_stream(const std::string &equation_name, Mesh &mesh, const Input::Record &in_rec)
This method delete all object instances of class OutputTime stored in output_streams vector...
Definition: output_time.cc:187
Field< 3, FieldValue< 3 >::Scalar > solid_ref_temperature
Reference temperature in solid.
Definition: heat_model.hh:136
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.
void compute_advection_diffusion_coefficients(const std::vector< arma::vec3 > &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:304
static const Input::Type::Record & get_input_type()
~HeatTransferModel() override
Definition: heat_model.cc:450
Field< 3, FieldValue< 3 >::Scalar > solid_density
Density of solid.
Definition: heat_model.hh:116
Discontinuous Galerkin method for equation of transport with dispersion.
arma::vec::fixed< spacedim > centre() const
Definition: accessors.hh:91
HeatTransferModel(Mesh &mesh, const Input::Record in_rec)
Definition: heat_model.cc:246
Record type proxy class.
Definition: type_record.hh:171
void compute_source_coefficients(const std::vector< arma::vec3 > &point_list, const ElementAccessor< 3 > &ele_acc, std::vector< arma::vec > &sources_conc, std::vector< arma::vec > &sources_density, std::vector< arma::vec > &sources_sigma) override
Definition: heat_model.cc:388
BCField< 3, FieldValue< 3 >::Scalar > bc_robin_sigma
Transition coefficient in total/diffusive flux b.c.
Definition: heat_model.hh:102
std::shared_ptr< OutputTime > output_stream_
Definition: heat_model.hh:269
Class for representation SI units of Fields.
Definition: unit_si.hh:40
static UnitSI & dimensionless()
Returns dimensionless unit.
Definition: unit_si.cc:53
Template for classes storing finite set of named values.
void output_data() override
Write computed fields.
Definition: heat_model.cc:268
Field< 3, FieldValue< 3 >::Scalar > disp_l
Longitudal heat dispersivity.
Definition: heat_model.hh:122
virtual void value_list(const std::vector< Point > &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename MultiFieldValue::return_type > &value_list) const
TimeGovernor * time_
Definition: equation.hh:222