Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65116512
transport_parameters.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, May 31, 22:54
Size
1 KB
Mime Type
text/x-c++
Expires
Sun, Jun 2, 22:54 (2 d)
Engine
blob
Format
Raw Data
Handle
18006428
Attached To
rSPECMICP SpecMiCP / ReactMiCP
transport_parameters.hpp
View Options
#ifndef SPECMICP_REACTMICP_SATURATEDDIFFUSION_TRANSPORTPARAMETERS_HPP
#define SPECMICP_REACTMICP_SATURATEDDIFFUSION_TRANSPORTPARAMETERS_HPP
#include "common.hpp"
namespace
specmicp
{
namespace
reactmicp
{
namespace
systems
{
namespace
siasaturated
{
//! \brief Parameters for the diffusion system
class
SaturatedDiffusionTransportParameters
{
public
:
SaturatedDiffusionTransportParameters
(
uindex_t
nbnodes
)
:
m_diffusion_coefficients
(
nbnodes
),
m_porosities
(
nbnodes
)
{}
SaturatedDiffusionTransportParameters
(
index_t
nbnodes
,
scalar_t
the_diffusion_coefficient
,
scalar_t
the_porosity
)
:
SaturatedDiffusionTransportParameters
(
nbnodes
)
{
m_diffusion_coefficients
.
setConstant
(
the_diffusion_coefficient
);
m_porosities
.
setConstant
(
the_porosity
);
}
//! \brief Density of water (kg/m^3)
scalar_t
density_water
()
{
return
1e3
;}
//! \brief Diffusion coefficient (element by element) (m^2/s)
scalar_t
diffusion_coefficient
(
index_t
node
)
const
{
return
m_diffusion_coefficients
(
node
);}
//! \brief Diffusion coefficient (element by element) (m^2/s)
scalar_t
&
diffusion_coefficient
(
index_t
node
)
{
return
m_diffusion_coefficients
(
node
);}
//! \brief Porosity (at a node (function of composition))
scalar_t
porosity
(
index_t
node
)
const
{
return
m_porosities
(
node
);}
//! \brief Porosity at a node
scalar_t
&
porosity
(
index_t
node
)
{
return
m_porosities
(
node
);}
private
:
Vector
m_diffusion_coefficients
;
Vector
m_porosities
;
};
}
// end namespace siasaturated
}
// end namespace systems
}
// end namespace reactmicp
}
// end namespace specmicp
#endif
// SPECMICP_REACTMICP_SATURATEDDIFFUSION_TRANSPORTPARAMETERS_HPP
Event Timeline
Log In to Comment