Page MenuHomec4science

variables_box.hpp
No OneTemporary

File Metadata

Created
Sat, May 4, 17:31

variables_box.hpp

/* =============================================================================
Copyright (c) 2014 - 2016
F. Georget <fabieng@princeton.edu> Princeton University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
============================================================================= */
#ifndef SPECMICP_REACTMICP_UNSATURATED_VARIABLESBOX
#define SPECMICP_REACTMICP_UNSATURATED_VARIABLESBOX
//! \file unsaturated/variables_box.hpp
//! \brief Set of variables passed to the equations
#include "../../../types.hpp"
#include "variables_sub.hpp"
namespace specmicp {
namespace reactmicp {
namespace systems {
namespace unsaturated {
//! \brief Base class for a box of variables
//! \internal
struct SPECMICP_DLL_LOCAL BaseVariableBox
{
};
//! \brief Variables box for the saturation equation
//! \internal
struct SPECMICP_DLL_LOCAL SaturationVariableBox:
public BaseVariableBox
{
MainVariable& liquid_saturation;
const MainVariable& solid_concentration;
const MainVariable& vapor_pressure;
const SecondaryTransientVariable& aqueous_concentration;
const SecondaryTransientVariable& porosity;
const SecondaryVariable& liquid_permeability;
const SecondaryVariable& liquid_diffusivity;
SecondaryVariable& relative_liquid_permeability;
SecondaryVariable& relative_liquid_diffusivity;
SecondaryVariable& capillary_pressure;
SecondaryVariable& advection_flux;
const ConstantBox& constants;
user_model_saturation_f capillary_pressure_f;
user_model_saturation_f relative_liquid_permeability_f;
user_model_saturation_f relative_liquid_diffusivity_f;
//!
//! \brief SaturationVariableBox
//! \param vars The main set of variables
//!
SaturationVariableBox(UnsaturatedVariables& vars);
// implementation fo the constructor is in variables.cpp
};
//! \brief Variables box for the saturation equation
//! \internal
struct SPECMICP_DLL_LOCAL SaturationPressureVariableBox:
public BaseVariableBox
{
scalar_t binary_diffusion_coefficient;
MainVariable& liquid_saturation;
MainVariable& partial_pressure;
const MainVariable& solid_concentration;
const SecondaryTransientVariable& aqueous_concentration;
const SecondaryTransientVariable& porosity;
const SecondaryVariable& liquid_permeability;
const SecondaryVariable& liquid_diffusivity;
SecondaryVariable& relative_liquid_permeability;
SecondaryVariable& relative_liquid_diffusivity;
SecondaryVariable& capillary_pressure;
const SecondaryVariable& resistance_gas_diffusivity;
const SecondaryVariable& relative_gas_diffusivity;
SecondaryVariable& advection_flux;
const ConstantBox& constants;
user_model_saturation_f capillary_pressure_f;
user_model_saturation_f relative_liquid_permeability_f;
user_model_saturation_f relative_liquid_diffusivity_f;
user_model_saturation_f relative_gas_diffusivity_f;
user_model_saturation_f partial_pressure_f;
//!
//! \brief SaturationVariableBox
//! \param vars The main set of variables
//!
SaturationPressureVariableBox(UnsaturatedVariables& vars);
// implementation fo the constructor is in variables.cpp
};
//! \brief Set of variables for the liquid transport equation of an aqueous component
//! \internal
struct SPECMICP_DLL_LOCAL LiquidAqueousComponentVariableBox:
public BaseVariableBox
{
MainVariable& aqueous_concentration;
const MainVariable& solid_concentration;
const MainVariable& partial_pressure;
const MainVariable& saturation;
const SecondaryTransientVariable& porosity;
const SecondaryVariable& liquid_diffusivity;
const SecondaryVariable& relative_liquid_diffusivity;
const SecondaryVariable& advection_flux;
const ConstantBox& constants;
//!
//! \brief LiquidAqueousComponentVariableBox
//! \param vars The main set of variables
//! \param component an aqueous component
//!
LiquidAqueousComponentVariableBox(UnsaturatedVariables& vars, index_t component);
// implementation fo the constructor is in variables.cpp
};
//! \brief Set of variables for the liquid and gas transport equation of an
//! aqueous component
//! \internal
struct SPECMICP_DLL_LOCAL LiquidGasAqueousVariableBox:
public LiquidAqueousComponentVariableBox
{
scalar_t binary_diffusion_coefficient;
const SecondaryVariable& resistance_gas_diffusivity;
const SecondaryVariable& relative_gas_diffusivity;
//!
//! \brief LiquidAqueousComponentVariableBox
//! \param vars The main set of variables
//! \param component an aqueous component
//!
LiquidGasAqueousVariableBox(UnsaturatedVariables& vars, index_t component);
// implementation fo the constructor is in variables.cpp
};
//! \brief Set of variables for the gas transport equation of an aqueous component
//! \internal
struct SPECMICP_DLL_LOCAL PressureVariableBox:
public BaseVariableBox
{
scalar_t binary_diffusion_coefficient;
MainVariable& partial_pressure;
const MainVariable& liquid_saturation;
const SecondaryTransientVariable& porosity;
const SecondaryVariable& resistance_gas_diffusivity;
const SecondaryVariable& relative_gas_diffusivity;
const ConstantBox& constants;
//!
//! \brief PressureVariableBox
//! \param vars The main set of variables
//! \param component The component (can be water)
//!
PressureVariableBox(UnsaturatedVariables& vars, index_t component);
// implementation fo the constructor is in variables.cpp
};
} //end namespace unsaturated
} //end namespace systems
} //end namespace reactmicp
} //end namespace specmicp
#endif // SPECMICP_REACTMICP_UNSATURATED_VARIABLESBOX

Event Timeline