Page MenuHomec4science

variables.cpp
No OneTemporary

File Metadata

Created
Tue, Feb 4, 11:38

variables.cpp

#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) {
return porosity(node)*displacement().segment(offset_aqueous_concentration(node), nb_component())
+ displacement().segment(offset_solid_concentration(node), nb_component());
}
} // end namespace satdiff
} // end namespace systems
} // end namespace reactmicp
} // end namespace specmicp

Event Timeline