Flow123d  release_3.0.0-968-gc87a28e79
darcy_flow_mh.hh
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 darcy_flow_mh.hh
15  * @brief mixed-hybrid model of linear Darcy flow, possibly unsteady.
16  * @author Jan Brezina
17  *
18  * Main object for mixed-hybrid discretization of the linear elliptic PDE (Laplace)
19  * on a multidimensional domain. Discretization of saturated Darcy flow using
20  * RT0 approximation for the velocity
21  */
22 
23 /*
24  * list of files dependent on this one:
25  *
26  * posprocess.cc
27  * problem.cc
28  * main.hh
29  * transport.cc
30  */
31 
32 
33 #ifndef DARCY_FLOW_MH_HH
34 #define DARCY_FLOW_MH_HH
35 
36 #include <petscmat.h> // for Mat
37 #include <string.h> // for memcpy
38 #include <algorithm> // for swap
39 
40 #include <memory> // for shared_ptr, allocator...
41 #include <new> // for operator new[]
42 #include <string> // for string, operator<<
43 #include <vector> // for vector, vector<>::con...
44 #include <armadillo>
45 #include "fields/bc_field.hh" // for BCField
46 #include "fields/field.hh" // for Field
47 #include "fields/field_set.hh" // for FieldSet
48 #include "fields/field_values.hh" // for FieldValue<>::Scalar
49 #include "flow/darcy_flow_interface.hh" // for DarcyFlowInterface
50 #include "flow/mh_dofhandler.hh" // for MH_DofHandler, uint
51 #include "input/input_exception.hh" // for DECLARE_INPUT_EXCEPTION
52 #include "input/type_base.hh" // for Array
53 #include "input/type_generic.hh" // for Instance
54 #include "mesh/mesh.h" // for Mesh
55 #include "petscvec.h" // for Vec, _p_Vec, VecScatter
56 #include "system/exceptions.hh" // for ExcStream, operator<<
57 #include "tools/time_governor.hh" // for TimeGovernor
58 
59 class AssemblyBase;
60 class Balance;
61 class DarcyFlowMHOutput;
62 class Element;
63 class Intersection;
64 class LinSys;
65 class LinSys_BDDC;
66 namespace Input {
67  class AbstractRecord;
68  class Record;
69  namespace Type {
70  class Record;
71  class Selection;
72  }
73 }
74 
75 /**
76  * @brief Mixed-hybrid model of linear Darcy flow, possibly unsteady.
77  *
78  * Abstract class for various implementations of Darcy flow. In future there should be
79  * one further level of abstraction for general time dependent problem.
80  *
81  * maybe TODO:
82  * split compute_one_step to :
83  * 1) prepare_next_timestep
84  * 2) actualize_solution - this is for iterative nonlinear solvers
85  *
86  */
87 
88 
89 /**
90  * @brief Mixed-hybrid of steady Darcy flow with sources and variable density.
91  *
92  * solve equations:
93  * @f[
94  * q= -{\mathbf{K}} \nabla h -{\mathbf{K}} R \nabla z
95  * @f]
96  * @f[
97  * \mathrm{div} q = f
98  * @f]
99  *
100  * where
101  * - @f$ q @f$ is flux @f$[ms^{-1}]@f$ for 3d, @f$[m^2s^{-1}]@f$ for 2d and @f$[m^3s^{-1}]@f$ for 1d.
102  * - @f$ \mathbf{K} @f$ is hydraulic tensor ( its orientation for 2d, 1d case is questionable )
103  * - @f$ h = \frac{\pi}{\rho_0 g}+z @f$ is pressure head, @f$ \pi, \rho_0, g @f$ are the pressure, water density, and acceleration of gravity , respectively.
104  * Assumes gravity force acts counter to the direction of the @f$ z @f$ axis.
105  * - @f$ R @f$ is destity or gravity variability coefficient. For density driven flow it should be
106  * @f[
107  * R = \frac{\rho}{\rho_0} -1 = \rho_0^{-1}\sum_{i=1}^s c_i
108  * @f]
109  * where @f$ c_i @f$ is concentration in @f$ kg m^{-3} @f$.
110  *
111  * The time key is optional, when not specified the equation is forced to steady regime. Using Steady TimeGovernor which have no dt constraints.
112  *
113  *
114  * TODO:
115  * Make solution regular field (need FeSeystem and parallel DofHandler for edge pressures), then remove get_solution_vector from
116  * Equation interface.
117  */
118 /**
119  * Model for transition coefficients due to Martin, Jaffre, Roberts (see manual for full reference)
120  *
121  * TODO:
122  * - how we can reuse field values computed during assembly
123  *
124  */
125 
127 {
128 public:
129  TYPEDEF_ERR_INFO( EI_Reason, string);
130  DECLARE_EXCEPTION(ExcSolverDiverge,
131  << "Diverged nonlinear solver. Reason: " << EI_Reason::val
132  );
133  DECLARE_INPUT_EXCEPTION(ExcMissingTimeGovernor,
134  << "Missing the key 'time', obligatory for the transient problems.");
135 
136 
138 
139  /// Type of experimental Mortar-like method for non-compatible 1d-2d interaction.
141  NoMortar = 0,
142  MortarP0 = 1,
144  };
145 
146  /// Class with all fields used in the equation DarcyFlow.
147  /// This is common to all implementations since this provides interface
148  /// to this equation for possible coupling.
149  class EqData : public FieldSet {
150  public:
151 
152  /**
153  * For compatibility with old BCD file we have to assign integer codes starting from 1.
154  */
155  enum BC_Type {
156  none=0,
161  };
162 
163  /// Return a Selection corresponding to enum BC_Type.
165 
166  /// Creation of all fields.
167  EqData();
168 
169 
175 
176  BCField<3, FieldValue<3>::Enum > bc_type; // Discrete need Selection for initialization
181 
184 
185  /**
186  * Gravity vector and constant shift of pressure potential. Used to convert piezometric head
187  * to pressure head and vice versa.
188  */
189  arma::vec4 gravity_;
191 
192  // Mirroring the following members of DarcyMH:
195 
196 
198 
200 
201  std::shared_ptr<Balance> balance;
203 
204  unsigned int n_schur_compls;
205  int is_linear; ///< Hack fo BDDC solver.
206  bool force_bc_switch; ///< auxiliary flag for switchting Dirichlet like BC
207 
208  /// Idicator of dirichlet or neumann type of switch boundary conditions.
210  };
211 
212  /// Selection for enum MortarMethod.
214 
215 
216 
217 
218 
219  DarcyMH(Mesh &mesh, const Input::Record in_rec);
220 
222  static const Input::Type::Record & get_input_type();
223 
224  const MH_DofHandler &get_mh_dofhandler() override {
225  double *array;
226  unsigned int size;
227  get_solution_vector(array, size);
228 
229  // here assume that velocity field is extended as constant
230  // to the previous time, so here we set left bound of the interval where the velocity
231  // has current value; this may not be good for every transport !!
232  // we can resolve this when we use FieldFE to store computed velocities in few last steps and
233  // let every equation set time according to nature of the time scheme
234 
235  // in particular this setting is necessary to prevent ConvectinTransport to recreate the transport matrix
236  // every timestep ( this may happen for unsteady flow if we would use time->t() here since it returns infinity.
238  return mh_dh;
239  }
240 
241  void init_eq_data();
242  void initialize() override;
243  virtual void initialize_specific();
244  void zero_time_step() override;
245  void update_solution() override;
246 
247  void get_solution_vector(double * &vec, unsigned int &vec_size) override;
248  void get_parallel_solution_vector(Vec &vector) override;
249 
250  /// postprocess velocity field (add sources)
251  virtual void prepare_new_time_step();
252  virtual void postprocess();
253  virtual void output_data() override;
254 
255  virtual ~DarcyMH() override;
256 
257 
258 protected:
259  /**
260  * Returns true is the fields involved in the time term have values that makes the time term zero.
261  * For time_global==true, it returns true if there are no field descriptors in the input list, so the
262  * fields )of the time ter) have their default values for whole simulation.
263  * If time_global==false (default), only the actual values are considered.
264  */
265  virtual bool zero_time_term(bool time_global=false);
266 
267  /// Solve method common to zero_time_step and update solution.
268  void solve_nonlinear();
269  void make_serial_scatter();
270  void modify_system();
271  virtual void setup_time_term();
272 
273 
274  //void prepare_parallel();
275  //void make_row_numberings();
276  /// Initialize global_row_4_sub_row.
277  //void prepare_parallel_bddc();
278 
279  /**
280  * Create and preallocate MH linear system (including matrix, rhs and solution vectors)
281  */
283 
284  /**
285  * Read initial condition into solution vector.
286  * Must be called after create_linear_system.
287  *
288  * For the LMH scheme we have to be able to save edge pressures in order to
289  * restart simulation or use results of one simulation as initial condition for other one.
290  */
291  virtual void read_initial_condition();
292 
293  /**
294  * Part of per element assembly that is specific for MH and LMH respectively.
295  *
296  * This implemnets MH case:
297  * - compute conductivity scaling
298  * - assembly source term
299  * - no time term, managed by diagonal extraction etc.
300  */
301  //virtual void local_assembly_specific(AssemblyData &local_data);
302 
303  /**
304  * Allocates linear system matrix for MH.
305  * TODO:
306  * - use general preallocation methods in DofHandler
307  */
308  void allocate_mh_matrix();
309 
310  /**
311  * Assembles linear system matrix for MH.
312  * Element by element assembly is done using dim-template assembly class.
313  * Assembles only steady part of the equation.
314  * TODO:
315  * - include time term
316  * - add support for Robin type sources
317  * - support for nonlinear solvers - assembly either residual vector, matrix, or both (using FADBAD++)
318  */
319  void assembly_mh_matrix(MultidimAssembly& assembler);
320 
321  /// Source term is implemented differently in LMH version.
322  virtual void assembly_source_term();
323 
324  /**
325  * Assembly or update whole linear system.
326  */
327  virtual void assembly_linear_system();
328 
329  void set_mesh_data_for_bddc(LinSys_BDDC * bddc_ls);
330  /**
331  * Return a norm of residual vector.
332  * TODO: Introduce Equation::compute_residual() updating
333  * residual field, standard part of EqData.
334  */
335  virtual double solution_precision() const;
336 
337  /// Print darcy flow matrix in matlab format into a file.
338  void print_matlab_matrix(string matlab_file);
339 
341  //Vec velocity_vector;
342  MH_DofHandler mh_dh; // provides access to seq. solution fluxes and pressures on sides
343 
344 
345  std::shared_ptr<Balance> balance_;
346 
348 
349  int size; // global size of MH matrix
350  int n_schur_compls; // number of shur complements to make
351  double *solution; // sequantial scattered solution vector
352 
353  // Propagate test for the time term to the assembly.
354  // This flag is necessary for switching BC to avoid setting zero neumann on the whole boundary in the steady case.
357 
358  // Setting of the nonlinear solver. TODO: Move to the solver class later on.
359  double tolerance_;
360  unsigned int min_n_it_;
361  unsigned int max_n_it_;
362  unsigned int nonlinear_iteration_; //< Actual number of completed nonlinear iterations, need to pass this information into assembly.
363 
364 
365  LinSys *schur0; //< whole MH Linear System
366 
367 
368  // gather of the solution
369  Vec sol_vec; //< vector over solution array
370  VecScatter par_to_all;
371 
376 
377  std::shared_ptr<EqData> data_;
378 
379  friend class DarcyFlowMHOutput;
380  //friend class P0_CouplingAssembler;
381  //friend class P1_CouplingAssembler;
382 
383 private:
384  /// Registrar of class to factory
385  static const int registrar;
386 };
387 
388 
389 
390 void mat_count_off_proc_values(Mat m, Vec v);
391 
392 
393 #endif //DARCY_FLOW_MH_HH
394 //-----------------------------------------------------------------------------
395 // vim: set cindent:
396 
bc_field.hh
DarcyMH::balance_
std::shared_ptr< Balance > balance_
Definition: darcy_flow_mh.hh:345
DarcyMH::EqData::BC_Type
BC_Type
Definition: darcy_flow_mh.hh:155
DarcyMH::EqData::mh_dh
MH_DofHandler * mh_dh
Definition: darcy_flow_mh.hh:194
DarcyMH::previous_solution
Vec previous_solution
Definition: darcy_flow_mh.hh:375
MH_DofHandler::set_solution
void set_solution(double time, double *solution, double precision)
Definition: mh_dofhandler.cc:265
DarcyMH::solution_precision
virtual double solution_precision() const
Definition: darcy_flow_mh.cc:659
DarcyMH::init_eq_data
void init_eq_data()
Definition: darcy_flow_mh.cc:327
DarcyMH::solve_nonlinear
void solve_nonlinear()
Solve method common to zero_time_step and update solution.
Definition: darcy_flow_mh.cc:511
DarcyMH::use_steady_assembly_
bool use_steady_assembly_
Definition: darcy_flow_mh.hh:355
LinSys
Definition: la_linsys_new.hh:169
time_governor.hh
Basic time management class.
DarcyMH::size
int size
Definition: darcy_flow_mh.hh:349
DarcyMH::EqData::dirichlet
@ dirichlet
Definition: darcy_flow_mh.hh:157
DarcyMH::steady_rhs
Vec steady_rhs
Definition: darcy_flow_mh.hh:373
mh_dofhandler.hh
DarcyMH::make_serial_scatter
void make_serial_scatter()
Definition: darcy_flow_mh.cc:1255
Input
Abstract linear system class.
Definition: balance.hh:37
DarcyMH::par_to_all
VecScatter par_to_all
Definition: darcy_flow_mh.hh:370
DarcyMH::update_solution
void update_solution() override
Definition: darcy_flow_mh.cc:451
DarcyMH::type_field_descriptor
static const Input::Type::Record & type_field_descriptor()
Definition: darcy_flow_mh.cc:116
string.h
Balance
Definition: balance.hh:116
DarcyMH::EqData::sigma
Field< 3, FieldValue< 3 >::Scalar > sigma
Definition: darcy_flow_mh.hh:174
DarcyMH::postprocess
virtual void postprocess()
Definition: darcy_flow_mh.cc:611
EquationBase::time_
TimeGovernor * time_
Definition: equation.hh:222
DarcyMH::setup_time_term
virtual void setup_time_term()
Definition: darcy_flow_mh.cc:1350
DarcyMH::EqData::n_schur_compls
unsigned int n_schur_compls
Definition: darcy_flow_mh.hh:204
DarcyMH::EqData::gravity_
arma::vec4 gravity_
Definition: darcy_flow_mh.hh:189
field_set.hh
DarcyMH::create_linear_system
void create_linear_system(Input::AbstractRecord rec)
Initialize global_row_4_sub_row.
Definition: darcy_flow_mh.cc:853
std::vector
Definition: doxy_dummy_defs.hh:7
DarcyMH::EqData::bc_flux
BCField< 3, FieldValue< 3 >::Scalar > bc_flux
Definition: darcy_flow_mh.hh:178
DarcyMH::output_data
virtual void output_data() override
Write computed fields.
Definition: darcy_flow_mh.cc:646
DarcyMH::~DarcyMH
virtual ~DarcyMH() override
Definition: darcy_flow_mh.cc:1225
DarcyMH::EqData::total_flux
@ total_flux
Definition: darcy_flow_mh.hh:158
DarcyMH::sol_vec
Vec sol_vec
Definition: darcy_flow_mh.hh:369
arma::vec3
Definition: doxy_dummy_defs.hh:17
DarcyMH::solution
double * solution
Definition: darcy_flow_mh.hh:351
DarcyMH::get_mh_mortar_selection
static const Input::Type::Selection & get_mh_mortar_selection()
Selection for enum MortarMethod.
Definition: darcy_flow_mh.cc:78
uint
unsigned int uint
Definition: mh_dofhandler.hh:108
type_base.hh
DarcyMH::max_n_it_
unsigned int max_n_it_
Definition: darcy_flow_mh.hh:361
DarcyMH::EqData::gravity_vec_
arma::vec3 gravity_vec_
Definition: darcy_flow_mh.hh:190
DarcyMH::EqData::bc_switch_pressure
BCField< 3, FieldValue< 3 >::Scalar > bc_switch_pressure
Definition: darcy_flow_mh.hh:180
exceptions.hh
Element
Definition: elements.h:42
DarcyMH::allocate_mh_matrix
void allocate_mh_matrix()
Definition: darcy_flow_mh.cc:721
DarcyMH::prepare_new_time_step
virtual void prepare_new_time_step()
postprocess velocity field (add sources)
Definition: darcy_flow_mh.cc:606
DarcyMH::assembly_mh_matrix
void assembly_mh_matrix(MultidimAssembly &assembler)
Definition: darcy_flow_mh.cc:696
DarcyMH::EqData
Definition: darcy_flow_mh.hh:149
DarcyMH::EqData::none
@ none
Definition: darcy_flow_mh.hh:156
EquationBase::mesh
Mesh & mesh()
Definition: equation.hh:174
DarcyMH::output_object
DarcyFlowMHOutput * output_object
Definition: darcy_flow_mh.hh:347
DarcyMH::EqData::bc_pressure
BCField< 3, FieldValue< 3 >::Scalar > bc_pressure
Definition: darcy_flow_mh.hh:177
DarcyMH::EqData::river
@ river
Definition: darcy_flow_mh.hh:160
Intersection
Definition: intersectionquadrature.hh:146
Input::Record
Accessor to the data with type Type::Record.
Definition: accessors.hh:291
DarcyMH::EqData::bc_switch_dirichlet
std::vector< char > bc_switch_dirichlet
Idicator of dirichlet or neumann type of switch boundary conditions.
Definition: darcy_flow_mh.hh:209
DarcyMH::assembly_source_term
virtual void assembly_source_term()
Source term is implemented differently in LMH version.
Definition: darcy_flow_mh.cc:825
type_generic.hh
DarcyMH::EqData::is_linear
int is_linear
Hack fo BDDC solver.
Definition: darcy_flow_mh.hh:205
mat_count_off_proc_values
void mat_count_off_proc_values(Mat m, Vec v)
DarcyMH::modify_system
void modify_system()
Definition: darcy_flow_mh.cc:1387
DarcyMH::min_n_it_
unsigned int min_n_it_
Definition: darcy_flow_mh.hh:360
DarcyMH::zero_time_term
virtual bool zero_time_term(bool time_global=false)
Definition: darcy_flow_mh.cc:502
DarcyMH::steady_diagonal
Vec steady_diagonal
Definition: darcy_flow_mh.hh:372
field_values.hh
Input::AbstractRecord
Accessor to the polymorphic input data of a type given by an AbstracRecord object.
Definition: accessors.hh:458
LinSys_BDDC
Definition: linsys_BDDC.hh:41
DarcyMH::print_matlab_matrix
void print_matlab_matrix(string matlab_file)
Print darcy flow matrix in matlab format into a file.
Definition: darcy_flow_mh.cc:1009
DarcyMH::EqData::get_bc_type_selection
static const Input::Type::Selection & get_bc_type_selection()
Return a Selection corresponding to enum BC_Type.
Definition: darcy_flow_mh.cc:87
TimeGovernor::last_t
double last_t() const
Definition: time_governor.hh:533
input_exception.hh
DarcyMH::DECLARE_INPUT_EXCEPTION
DECLARE_INPUT_EXCEPTION(ExcMissingTimeGovernor,<< "Missing the key 'time', obligatory for the transient problems.")
DarcyMH::DarcyMH
DarcyMH(Mesh &mesh, const Input::Record in_rec)
CREATE AND FILL GLOBAL MH MATRIX OF THE WATER MODEL.
Definition: darcy_flow_mh.cc:283
DarcyMH::EqData::mesh
Mesh * mesh
Definition: darcy_flow_mh.hh:193
FieldSet
Container for various descendants of FieldCommonBase.
Definition: field_set.hh:71
DarcyMH::schur0
LinSys * schur0
Definition: darcy_flow_mh.hh:365
mesh.h
Input::Type::Selection
Template for classes storing finite set of named values.
Definition: type_selection.hh:65
DarcyMH::n_schur_compls
int n_schur_compls
Definition: darcy_flow_mh.hh:350
DarcyMH::EqData::water_source_density
Field< 3, FieldValue< 3 >::Scalar > water_source_density
Definition: darcy_flow_mh.hh:173
DarcyMH::MultidimAssembly
std::vector< std::shared_ptr< AssemblyBase > > MultidimAssembly
Definition: darcy_flow_mh.hh:137
Input::Type::Record
Record type proxy class.
Definition: type_record.hh:182
DarcyMH::mh_dh
MH_DofHandler mh_dh
Definition: darcy_flow_mh.hh:342
DarcyMH::data_
std::shared_ptr< EqData > data_
Definition: darcy_flow_mh.hh:377
DarcyMH::DECLARE_EXCEPTION
DECLARE_EXCEPTION(ExcSolverDiverge,<< "Diverged nonlinear solver. Reason: "<< EI_Reason::val)
DarcyMH::new_diagonal
Vec new_diagonal
Definition: darcy_flow_mh.hh:374
DarcyMH::EqData::storativity
Field< 3, FieldValue< 3 >::Scalar > storativity
Definition: darcy_flow_mh.hh:183
Mesh
Definition: mesh.h:80
DarcyMH::nonlinear_iteration_
unsigned int nonlinear_iteration_
Definition: darcy_flow_mh.hh:362
DarcyMH::tolerance_
double tolerance_
Definition: darcy_flow_mh.hh:359
DarcyMH::set_mesh_data_for_bddc
void set_mesh_data_for_bddc(LinSys_BDDC *bddc_ls)
Definition: darcy_flow_mh.cc:1068
DarcyMH::get_input_type
static const Input::Type::Record & get_input_type()
Definition: darcy_flow_mh.cc:131
DarcyMH::EqData::force_bc_switch
bool force_bc_switch
auxiliary flag for switchting Dirichlet like BC
Definition: darcy_flow_mh.hh:206
DarcyMH::EqData::water_balance_idx
uint water_balance_idx
Definition: darcy_flow_mh.hh:197
DarcyMH::assembly_linear_system
virtual void assembly_linear_system()
Definition: darcy_flow_mh.cc:954
DarcyMH::EqData::balance
std::shared_ptr< Balance > balance
Definition: darcy_flow_mh.hh:201
DarcyMH::get_parallel_solution_vector
void get_parallel_solution_vector(Vec &vector) override
Definition: darcy_flow_mh.cc:683
DarcyMH::MortarP0
@ MortarP0
Definition: darcy_flow_mh.hh:142
DarcyMH::initialize_specific
virtual void initialize_specific()
Definition: darcy_flow_mh.cc:412
DarcyMH::NoMortar
@ NoMortar
Definition: darcy_flow_mh.hh:141
DarcyMH::EqData::mortar_method_
MortarMethod mortar_method_
Definition: darcy_flow_mh.hh:199
AssemblyBase
Definition: darcy_flow_assembly.hh:34
DarcyMH::MortarMethod
MortarMethod
Type of experimental Mortar-like method for non-compatible 1d-2d interaction.
Definition: darcy_flow_mh.hh:140
DarcyMH::EqData::anisotropy
Field< 3, FieldValue< 3 >::TensorFixed > anisotropy
Definition: darcy_flow_mh.hh:170
DarcyMH::data_changed_
bool data_changed_
Definition: darcy_flow_mh.hh:356
DarcyMH::EqData::bc_robin_sigma
BCField< 3, FieldValue< 3 >::Scalar > bc_robin_sigma
Definition: darcy_flow_mh.hh:179
BCField
Definition: bc_field.hh:32
DarcyMH::EqData::lin_sys
LinSys * lin_sys
Definition: darcy_flow_mh.hh:202
DarcyMH::solution_changed_for_scatter
bool solution_changed_for_scatter
Definition: darcy_flow_mh.hh:340
Field
Class template representing a field with values dependent on: point, element, and region.
Definition: field.hh:83
DarcyMH::get_mh_dofhandler
const MH_DofHandler & get_mh_dofhandler() override
Definition: darcy_flow_mh.hh:224
DarcyMH::EqData::seepage
@ seepage
Definition: darcy_flow_mh.hh:159
DarcyMH::TYPEDEF_ERR_INFO
TYPEDEF_ERR_INFO(EI_Reason, string)
DarcyFlowMHOutput
Definition: darcy_flow_mh_output.hh:75
DarcyMH::MortarP1
@ MortarP1
Definition: darcy_flow_mh.hh:143
DarcyMH::EqData::init_pressure
Field< 3, FieldValue< 3 >::Scalar > init_pressure
Definition: darcy_flow_mh.hh:182
DarcyMH::read_initial_condition
virtual void read_initial_condition()
Definition: darcy_flow_mh.cc:1333
DarcyMH
Mixed-hybrid model of linear Darcy flow, possibly unsteady.
Definition: darcy_flow_mh.hh:126
DarcyMH::EqData::cross_section
Field< 3, FieldValue< 3 >::Scalar > cross_section
Definition: darcy_flow_mh.hh:172
DarcyMH::EqData::bc_type
BCField< 3, FieldValue< 3 >::Enum > bc_type
Definition: darcy_flow_mh.hh:176
DarcyMH::EqData::conductivity
Field< 3, FieldValue< 3 >::Scalar > conductivity
Definition: darcy_flow_mh.hh:171
DarcyMH::get_solution_vector
void get_solution_vector(double *&vec, unsigned int &vec_size) override
Definition: darcy_flow_mh.cc:666
DarcyMH::registrar
static const int registrar
Registrar of class to factory.
Definition: darcy_flow_mh.hh:385
DarcyMH::initialize
void initialize() override
Definition: darcy_flow_mh.cc:368
darcy_flow_interface.hh
MH_DofHandler
Definition: mh_dofhandler.hh:43
DarcyMH::zero_time_step
void zero_time_step() override
Definition: darcy_flow_mh.cc:415
field.hh
DarcyFlowInterface
Definition: darcy_flow_interface.hh:16
DarcyMH::EqData::EqData
EqData()
Creation of all fields.
Definition: darcy_flow_mh.cc:184