Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99920145
variables.cpp
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
Mon, Jan 27, 07:08
Size
729 B
Mime Type
text/x-c
Expires
Wed, Jan 29, 07:08 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23849456
Attached To
rSPECMICP SpecMiCP / ReactMiCP
variables.cpp
View Options
#include "variables.hpp"
#include "dfpm/meshes/mesh1d.hpp"
namespace
specmicp
{
namespace
reactmicp
{
namespace
systems
{
namespace
satdiff
{
SaturatedVariables
::
SaturatedVariables
(
mesh
::
Mesh1DPtr
the_mesh
,
RawDatabasePtr
the_database
)
:
m_mesh
(
the_mesh
),
m_database
(
the_database
)
{}
Vector
SaturatedVariables
::
total_concentrations
(
index_t
node
)
{
index_t
offset
=
offset_node
(
node
);
return
porosity
(
node
)
*
displacement
().
segment
(
offset
+
offset_aqueous_concentration
(),
nb_component
())
+
displacement
().
segment
(
offset
+
offset_solid_concentration
(),
nb_component
());
}
}
// end namespace satdiff
}
// end namespace systems
}
// end namespace reactmicp
}
// end namespace specmicp
Event Timeline
Log In to Comment