Commit 3fbde79a authored by Jonas Kusch's avatar Jonas Kusch
Browse files

added scattering with vector

parent 3b49556a
......@@ -53,6 +53,13 @@ class ProblemBase
return std::vector<Matrix>( energies.size(), Matrix( angles.rows(), angles.columns() ) );
}
/**
* @brief GetScatteringXSE gives back vector (each energy) of scattering cross sections for energies
* in vector energy
* @param energy is the energy the cross section is queried for
*/
virtual VectorVector GetScatteringXSE( const Vector& energies, const Vector& angles );
/**
* @brief GetExternalSource gives back vector of vectors of source terms for each
* energy, cell and angle
......
......@@ -33,6 +33,8 @@ ProblemBase* ProblemBase::Create( Config* settings, Mesh* mesh ) {
std::vector<double> ProblemBase::GetDensity( const VectorVector& cellMidPoints ) { return std::vector<double>( cellMidPoints.size(), 1.0 ); }
VectorVector ProblemBase::GetScatteringXSE( const Vector& energies, const Vector& angles ) { return _physics->GetScatteringXS( energies, angles ); }
Vector ProblemBase::GetStoppingPower( const Vector& energies ) {
if( _physics ) {
return _physics->GetStoppingPower( energies );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment