diff --git a/ProcessLib/ComponentTransport/ComponentTransportFEM.h b/ProcessLib/ComponentTransport/ComponentTransportFEM.h index 671b8044da3d0ae80c8fe64547c84d3100e999d1..d326a0ebb931c3274d8cba3246e6c66925f4665e 100644 --- a/ProcessLib/ComponentTransport/ComponentTransportFEM.h +++ b/ProcessLib/ComponentTransport/ComponentTransportFEM.h @@ -66,8 +66,8 @@ public: virtual std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; protected: @@ -706,8 +706,8 @@ public: std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override { auto const indices = NumLib::getIndices(_element.getID(), dof_table); diff --git a/ProcessLib/GroundwaterFlow/GroundwaterFlowFEM.h b/ProcessLib/GroundwaterFlow/GroundwaterFlowFEM.h index 9b6ffce86ff5be676ca021b6f6b95e6c7b127515..82d9b6b72bcbe2bf6065e4029098b076469ae381 100644 --- a/ProcessLib/GroundwaterFlow/GroundwaterFlowFEM.h +++ b/ProcessLib/GroundwaterFlow/GroundwaterFlowFEM.h @@ -63,10 +63,10 @@ class GroundwaterFlowLocalAssemblerInterface { public: virtual std::vector<double> const& getIntPtDarcyVelocity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; }; template <typename ShapeFunction, typename IntegrationMethod, @@ -175,8 +175,8 @@ public: std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override { auto const n_integration_points = diff --git a/ProcessLib/HT/HTLocalAssemblerInterface.h b/ProcessLib/HT/HTLocalAssemblerInterface.h index 54b4569465b19bd15852cbf5200d4b810285ae6c..27057b023aa89e2d2131f7f01f588a99caa7a67f 100644 --- a/ProcessLib/HT/HTLocalAssemblerInterface.h +++ b/ProcessLib/HT/HTLocalAssemblerInterface.h @@ -55,8 +55,8 @@ public: virtual std::vector<double> const& getIntPtDarcyVelocity( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const = 0; Eigen::Vector3d getFlux(MathLib::Point3d const& pnt_local_coords, diff --git a/ProcessLib/HT/MonolithicHTFEM.h b/ProcessLib/HT/MonolithicHTFEM.h index d1b5db88c6fc0c93a2954945b312bdbb4b7e01e8..8348a447d55705c3350568c43c12376fd02b4229 100644 --- a/ProcessLib/HT/MonolithicHTFEM.h +++ b/ProcessLib/HT/MonolithicHTFEM.h @@ -204,8 +204,8 @@ public: std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override { auto const indices = diff --git a/ProcessLib/HT/StaggeredHTFEM-impl.h b/ProcessLib/HT/StaggeredHTFEM-impl.h index 71a10acc432809c5edc57638f8943bb600dd9313..e3302dc990f7af5622226f65568127278c5deeb7 100644 --- a/ProcessLib/HT/StaggeredHTFEM-impl.h +++ b/ProcessLib/HT/StaggeredHTFEM-impl.h @@ -293,10 +293,11 @@ template <typename ShapeFunction, typename IntegrationMethod, unsigned GlobalDim> std::vector<double> const& StaggeredHTFEM<ShapeFunction, IntegrationMethod, GlobalDim>:: - getIntPtDarcyVelocity(const double t, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& dof_table, - std::vector<double>& cache) const + getIntPtDarcyVelocity( + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const { auto const indices = NumLib::getIndices(this->_element.getID(), dof_table); assert(!indices.empty()); diff --git a/ProcessLib/HT/StaggeredHTFEM.h b/ProcessLib/HT/StaggeredHTFEM.h index 76a84c5a1be529ecc06baef9730c0184c58834a3..8ce6c973de54acc96d8a08480617c70d8b3b9a26 100644 --- a/ProcessLib/HT/StaggeredHTFEM.h +++ b/ProcessLib/HT/StaggeredHTFEM.h @@ -79,8 +79,8 @@ public: std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; private: diff --git a/ProcessLib/HeatConduction/HeatConductionFEM.h b/ProcessLib/HeatConduction/HeatConductionFEM.h index ded194690664ecf8c8755c84a65e0f9f0451a096..ba6e90973569ef08b0894fce1eb27aa243462d4e 100644 --- a/ProcessLib/HeatConduction/HeatConductionFEM.h +++ b/ProcessLib/HeatConduction/HeatConductionFEM.h @@ -34,22 +34,22 @@ class HeatConductionLocalAssemblerInterface { public: virtual std::vector<double> const& getIntPtHeatFluxX( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtHeatFluxY( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtHeatFluxZ( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; }; template <typename ShapeFunction, typename IntegrationMethod, @@ -171,8 +171,8 @@ public: std::vector<double> const& getIntPtHeatFluxX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { assert(!_heat_fluxes.empty()); @@ -181,8 +181,8 @@ public: std::vector<double> const& getIntPtHeatFluxY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { assert(_heat_fluxes.size() > 1); @@ -191,8 +191,8 @@ public: std::vector<double> const& getIntPtHeatFluxZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { assert(_heat_fluxes.size() > 2); diff --git a/ProcessLib/HydroMechanics/HydroMechanicsFEM-impl.h b/ProcessLib/HydroMechanics/HydroMechanicsFEM-impl.h index 50e9740d1cd527c7c6f8b58ffa95db533c87dc70..78879632db5fd51938709263dca6c1a909fe5971 100644 --- a/ProcessLib/HydroMechanics/HydroMechanicsFEM-impl.h +++ b/ProcessLib/HydroMechanics/HydroMechanicsFEM-impl.h @@ -301,10 +301,11 @@ template <typename ShapeFunctionDisplacement, typename ShapeFunctionPressure, std::vector<double> const& HydroMechanicsLocalAssembler<ShapeFunctionDisplacement, ShapeFunctionPressure, IntegrationMethod, DisplacementDim>:: - getIntPtDarcyVelocity(const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, - std::vector<double>& cache) const + getIntPtDarcyVelocity( + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const { auto const num_intpts = _ip_data.size(); diff --git a/ProcessLib/HydroMechanics/HydroMechanicsFEM.h b/ProcessLib/HydroMechanics/HydroMechanicsFEM.h index 044b7e187810fa4db643039826070492efd66e06..c3cfe2fade5d587e81623b05f374adb8cdaeb971 100644 --- a/ProcessLib/HydroMechanics/HydroMechanicsFEM.h +++ b/ProcessLib/HydroMechanics/HydroMechanicsFEM.h @@ -215,8 +215,8 @@ public: std::vector<double> const& getIntPtSigmaXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 0); @@ -224,8 +224,8 @@ public: std::vector<double> const& getIntPtSigmaYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 1); @@ -233,8 +233,8 @@ public: std::vector<double> const& getIntPtSigmaZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 2); @@ -242,8 +242,8 @@ public: std::vector<double> const& getIntPtSigmaXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 3); @@ -251,8 +251,8 @@ public: std::vector<double> const& getIntPtSigmaXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -261,8 +261,8 @@ public: std::vector<double> const& getIntPtSigmaYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -271,8 +271,8 @@ public: std::vector<double> const& getIntPtEpsilonXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 0); @@ -280,8 +280,8 @@ public: std::vector<double> const& getIntPtEpsilonYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 1); @@ -289,8 +289,8 @@ public: std::vector<double> const& getIntPtEpsilonZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 2); @@ -298,8 +298,8 @@ public: std::vector<double> const& getIntPtEpsilonXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 3); @@ -307,8 +307,8 @@ public: std::vector<double> const& getIntPtEpsilonXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -317,8 +317,8 @@ public: std::vector<double> const& getIntPtEpsilonYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -327,8 +327,8 @@ public: std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; private: diff --git a/ProcessLib/HydroMechanics/LocalAssemblerInterface.h b/ProcessLib/HydroMechanics/LocalAssemblerInterface.h index 70a9db0bda297f2187d8ea171600336b59d1fa18..c9f999626b5d4a11f5712bb5c318f51d647b5203 100644 --- a/ProcessLib/HydroMechanics/LocalAssemblerInterface.h +++ b/ProcessLib/HydroMechanics/LocalAssemblerInterface.h @@ -31,80 +31,80 @@ struct LocalAssemblerInterface virtual std::vector<double> const& getIntPtSigmaXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSigmaYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSigmaZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSigmaXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSigmaXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSigmaYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtDarcyVelocity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; }; diff --git a/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerFracture.h b/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerFracture.h index 680afc0d621be0683604b1e9800df73ba1d6b909..2ee9c736111f6f4a42f34f045b669ca53c42efcb 100644 --- a/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerFracture.h +++ b/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerFracture.h @@ -107,8 +107,8 @@ public: std::vector<double> const& getIntPtSigmaXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 0); @@ -116,8 +116,8 @@ public: std::vector<double> const& getIntPtSigmaYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 1); @@ -125,8 +125,8 @@ public: std::vector<double> const& getIntPtSigmaZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 2); @@ -134,8 +134,8 @@ public: std::vector<double> const& getIntPtSigmaXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 3); @@ -143,8 +143,8 @@ public: std::vector<double> const& getIntPtSigmaXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -153,8 +153,8 @@ public: std::vector<double> const& getIntPtSigmaYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -163,8 +163,8 @@ public: std::vector<double> const& getIntPtEpsilonXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 0); @@ -172,8 +172,8 @@ public: std::vector<double> const& getIntPtEpsilonYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 1); @@ -181,8 +181,8 @@ public: std::vector<double> const& getIntPtEpsilonZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 2); @@ -190,8 +190,8 @@ public: std::vector<double> const& getIntPtEpsilonXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 3); @@ -199,8 +199,8 @@ public: std::vector<double> const& getIntPtEpsilonXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -209,8 +209,8 @@ public: std::vector<double> const& getIntPtEpsilonYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); diff --git a/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerInterface.h b/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerInterface.h index 46e9c2ee88feea54d6aa231143e5d4ba115ffb43..79a8fe37f4f3aadd7904fc77537eaf8b87ce346f 100644 --- a/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerInterface.h +++ b/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerInterface.h @@ -104,74 +104,74 @@ public: virtual std::vector<double> const& getIntPtSigmaXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSigmaYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSigmaZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSigmaXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSigmaXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSigmaYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilonYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; protected: diff --git a/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerMatrix.h b/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerMatrix.h index bced565a7e5e2baef49d070d838dc26df7513cbb..c517558d42b7a89fcf5389d59a5ddf0461c5628f 100644 --- a/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerMatrix.h +++ b/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerMatrix.h @@ -106,8 +106,8 @@ public: std::vector<double> const& getIntPtSigmaXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 0); @@ -115,8 +115,8 @@ public: std::vector<double> const& getIntPtSigmaYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 1); @@ -124,8 +124,8 @@ public: std::vector<double> const& getIntPtSigmaZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 2); @@ -133,8 +133,8 @@ public: std::vector<double> const& getIntPtSigmaXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 3); @@ -142,8 +142,8 @@ public: std::vector<double> const& getIntPtSigmaXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -152,8 +152,8 @@ public: std::vector<double> const& getIntPtSigmaYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -162,8 +162,8 @@ public: std::vector<double> const& getIntPtEpsilonXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 0); @@ -171,8 +171,8 @@ public: std::vector<double> const& getIntPtEpsilonYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 1); @@ -180,8 +180,8 @@ public: std::vector<double> const& getIntPtEpsilonZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 2); @@ -189,8 +189,8 @@ public: std::vector<double> const& getIntPtEpsilonXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 3); @@ -198,8 +198,8 @@ public: std::vector<double> const& getIntPtEpsilonXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -208,8 +208,8 @@ public: std::vector<double> const& getIntPtEpsilonYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); diff --git a/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerMatrixNearFracture.h b/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerMatrixNearFracture.h index 4e5cd530eebab3b07862358cdddce4c015ce2abf..94e67497d7ad897a9c64bda9daaf1f91cf1a5038 100644 --- a/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerMatrixNearFracture.h +++ b/ProcessLib/LIE/SmallDeformation/LocalAssembler/SmallDeformationLocalAssemblerMatrixNearFracture.h @@ -109,8 +109,8 @@ public: std::vector<double> const& getIntPtSigmaXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 0); @@ -118,8 +118,8 @@ public: std::vector<double> const& getIntPtSigmaYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 1); @@ -127,8 +127,8 @@ public: std::vector<double> const& getIntPtSigmaZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 2); @@ -136,8 +136,8 @@ public: std::vector<double> const& getIntPtSigmaXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtSigma(cache, 3); @@ -145,8 +145,8 @@ public: std::vector<double> const& getIntPtSigmaXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -155,8 +155,8 @@ public: std::vector<double> const& getIntPtSigmaYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -165,8 +165,8 @@ public: std::vector<double> const& getIntPtEpsilonXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 0); @@ -174,8 +174,8 @@ public: std::vector<double> const& getIntPtEpsilonYY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 1); @@ -183,8 +183,8 @@ public: std::vector<double> const& getIntPtEpsilonZZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 2); @@ -192,8 +192,8 @@ public: std::vector<double> const& getIntPtEpsilonXY( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { return getIntPtEpsilon(cache, 3); @@ -201,8 +201,8 @@ public: std::vector<double> const& getIntPtEpsilonXZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); @@ -211,8 +211,8 @@ public: std::vector<double> const& getIntPtEpsilonYZ( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { assert(DisplacementDim == 3); diff --git a/ProcessLib/LiquidFlow/LiquidFlowLocalAssembler-impl.h b/ProcessLib/LiquidFlow/LiquidFlowLocalAssembler-impl.h index c1ec1f3c7424ad2d8844f44dcca55823dc8ce687..c8d810787c8801ade77cc7af9ffb7f22c22ef11d 100644 --- a/ProcessLib/LiquidFlow/LiquidFlowLocalAssembler-impl.h +++ b/ProcessLib/LiquidFlow/LiquidFlowLocalAssembler-impl.h @@ -122,10 +122,11 @@ template <typename ShapeFunction, typename IntegrationMethod, unsigned GlobalDim> std::vector<double> const& LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>:: - getIntPtDarcyVelocity(const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, - std::vector<double>& velocity_cache) const + getIntPtDarcyVelocity( + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& velocity_cache) const { auto const indices = NumLib::getIndices(_element.getID(), dof_table); auto const local_x = current_solution.get(indices); diff --git a/ProcessLib/LiquidFlow/LiquidFlowLocalAssembler.h b/ProcessLib/LiquidFlow/LiquidFlowLocalAssembler.h index 4fe16c014251d331285420a6fd29af94c2de2a25..08f6657186dd1f349485d558ba99d74b65277108 100644 --- a/ProcessLib/LiquidFlow/LiquidFlowLocalAssembler.h +++ b/ProcessLib/LiquidFlow/LiquidFlowLocalAssembler.h @@ -61,10 +61,10 @@ class LiquidFlowLocalAssemblerInterface { public: virtual std::vector<double> const& getIntPtDarcyVelocity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; }; template <typename ShapeFunction, typename IntegrationMethod, @@ -139,8 +139,8 @@ public: std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& velocity_cache) const override; private: diff --git a/ProcessLib/PhaseField/LocalAssemblerInterface.h b/ProcessLib/PhaseField/LocalAssemblerInterface.h index 6e7900c2186e3b0504227e4e2864edc09438f12a..eb982b0b90f388c16c6a7369aa2e48221bd262dd 100644 --- a/ProcessLib/PhaseField/LocalAssemblerInterface.h +++ b/ProcessLib/PhaseField/LocalAssemblerInterface.h @@ -24,15 +24,15 @@ struct PhaseFieldLocalAssemblerInterface public NumLib::ExtrapolatableElement { virtual std::vector<double> const& getIntPtSigma( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilon( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual void computeCrackIntegral( diff --git a/ProcessLib/PhaseField/PhaseFieldFEM.h b/ProcessLib/PhaseField/PhaseFieldFEM.h index 14bd3e546c1bac9d6c3905a215a76a0a6bcf501a..4e4ce9cdccbcef00f6f320a5ce4a66acf0c77a3f 100644 --- a/ProcessLib/PhaseField/PhaseFieldFEM.h +++ b/ProcessLib/PhaseField/PhaseFieldFEM.h @@ -277,8 +277,8 @@ public: private: std::vector<double> const& getIntPtSigma( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { static const int kelvin_vector_size = @@ -303,8 +303,8 @@ private: std::vector<double> const& getIntPtEpsilon( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { auto const kelvin_vector_size = diff --git a/ProcessLib/RichardsComponentTransport/RichardsComponentTransportFEM-impl.h b/ProcessLib/RichardsComponentTransport/RichardsComponentTransportFEM-impl.h index 179256b9e74935a7910493e15dfe2b3e2af69248..4c57dd869aa53e851eb8722f4de8f35d37a5776f 100644 --- a/ProcessLib/RichardsComponentTransport/RichardsComponentTransportFEM-impl.h +++ b/ProcessLib/RichardsComponentTransport/RichardsComponentTransportFEM-impl.h @@ -214,10 +214,11 @@ template <typename ShapeFunction, typename IntegrationMethod, unsigned GlobalDim> std::vector<double> const& LocalAssemblerData<ShapeFunction, IntegrationMethod, GlobalDim>:: - getIntPtDarcyVelocity(const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, - std::vector<double>& cache) const + getIntPtDarcyVelocity( + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const { unsigned const n_integration_points = _integration_method.getNumberOfPoints(); @@ -302,10 +303,11 @@ template <typename ShapeFunction, typename IntegrationMethod, unsigned GlobalDim> std::vector<double> const& LocalAssemblerData<ShapeFunction, IntegrationMethod, GlobalDim>:: - getIntPtSaturation(const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, - std::vector<double>& cache) const + getIntPtSaturation( + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const { ParameterLib::SpatialPosition pos; pos.setElementID(_element_id); diff --git a/ProcessLib/RichardsComponentTransport/RichardsComponentTransportFEM.h b/ProcessLib/RichardsComponentTransport/RichardsComponentTransportFEM.h index 040422af215df72d265037491bf7299c2839ddb6..1dddf0e98b6ad18cad6f5f87e4d91037323f14e6 100644 --- a/ProcessLib/RichardsComponentTransport/RichardsComponentTransportFEM.h +++ b/ProcessLib/RichardsComponentTransport/RichardsComponentTransportFEM.h @@ -60,15 +60,15 @@ class RichardsComponentTransportLocalAssemblerInterface { public: virtual std::vector<double> const& getIntPtSaturation( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; }; @@ -112,8 +112,8 @@ public: std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; Eigen::Map<const Eigen::RowVectorXd> getShapeMatrix( @@ -121,9 +121,10 @@ public: std::vector<double> const& getIntPtSaturation( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; + private: unsigned const _element_id; RichardsComponentTransportProcessData const& _process_data; diff --git a/ProcessLib/RichardsFlow/RichardsFlowFEM.h b/ProcessLib/RichardsFlow/RichardsFlowFEM.h index ff890573a56a29e767901d3e224a2ba557f58643..6f0e663cb8973e252d7b6e3bfcd57b446b0a47a8 100644 --- a/ProcessLib/RichardsFlow/RichardsFlowFEM.h +++ b/ProcessLib/RichardsFlow/RichardsFlowFEM.h @@ -59,16 +59,16 @@ class RichardsFlowLocalAssemblerInterface { public: virtual std::vector<double> const& getIntPtSaturation( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtDarcyVelocity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; }; template <typename ShapeFunction, typename IntegrationMethod, @@ -237,8 +237,8 @@ public: std::vector<double> const& getIntPtSaturation( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { assert(!_saturation.empty()); @@ -247,8 +247,8 @@ public: std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override { auto const num_intpts = _shape_matrices.size(); diff --git a/ProcessLib/RichardsMechanics/LocalAssemblerInterface.h b/ProcessLib/RichardsMechanics/LocalAssemblerInterface.h index 4a0e28ab05e972159e77d73d0917b2218d3f2b8a..eaf661fd32f27264a226909763c03c99bc7dd4b8 100644 --- a/ProcessLib/RichardsMechanics/LocalAssemblerInterface.h +++ b/ProcessLib/RichardsMechanics/LocalAssemblerInterface.h @@ -21,27 +21,27 @@ struct LocalAssemblerInterface : public ProcessLib::LocalAssemblerInterface, public NumLib::ExtrapolatableElement { virtual std::vector<double> const& getIntPtSigma( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilon( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtDarcyVelocity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtSaturation( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; }; diff --git a/ProcessLib/RichardsMechanics/RichardsMechanicsFEM-impl.h b/ProcessLib/RichardsMechanics/RichardsMechanicsFEM-impl.h index 3c7a31f6c252f8a36a0ae52a9252d33616489e23..d8a8a598abdbeaf2e1c5c1f729edcd69c23ec40a 100644 --- a/ProcessLib/RichardsMechanics/RichardsMechanicsFEM-impl.h +++ b/ProcessLib/RichardsMechanics/RichardsMechanicsFEM-impl.h @@ -590,10 +590,11 @@ template <typename ShapeFunctionDisplacement, typename ShapeFunctionPressure, std::vector<double> const& RichardsMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, IntegrationMethod, DisplacementDim>:: - getIntPtSigma(const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& cache) const + getIntPtSigma( + const double /*t*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, + std::vector<double>& cache) const { static const int kelvin_vector_size = MathLib::KelvinVector::KelvinVectorDimensions<DisplacementDim>::value; @@ -619,10 +620,11 @@ template <typename ShapeFunctionDisplacement, typename ShapeFunctionPressure, std::vector<double> const& RichardsMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, IntegrationMethod, DisplacementDim>:: - getIntPtEpsilon(const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& cache) const + getIntPtEpsilon( + const double /*t*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, + std::vector<double>& cache) const { auto const kelvin_vector_size = MathLib::KelvinVector::KelvinVectorDimensions<DisplacementDim>::value; @@ -646,12 +648,12 @@ template <typename ShapeFunctionDisplacement, typename ShapeFunctionPressure, typename IntegrationMethod, int DisplacementDim> std::vector<double> const& RichardsMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, IntegrationMethod, - DisplacementDim>::getIntPtDarcyVelocity(const double t, - GlobalVector const& - current_solution, - NumLib::LocalToGlobalIndexMap const& - dof_table, - std::vector<double>& cache) const + DisplacementDim>:: + getIntPtDarcyVelocity( + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const { auto const num_intpts = _ip_data.size(); @@ -709,10 +711,11 @@ template <typename ShapeFunctionDisplacement, typename ShapeFunctionPressure, std::vector<double> const& RichardsMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, IntegrationMethod, DisplacementDim>:: - getIntPtSaturation(const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& cache) const + getIntPtSaturation( + const double /*t*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, + std::vector<double>& cache) const { auto const num_intpts = _ip_data.size(); diff --git a/ProcessLib/RichardsMechanics/RichardsMechanicsFEM.h b/ProcessLib/RichardsMechanics/RichardsMechanicsFEM.h index e5ade7e7472d1ef29f693a077186c07ab1e7cb36..45db4b3697186b755a912d5a47f4b156832c5b78 100644 --- a/ProcessLib/RichardsMechanics/RichardsMechanicsFEM.h +++ b/ProcessLib/RichardsMechanics/RichardsMechanicsFEM.h @@ -152,26 +152,26 @@ public: std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; std::vector<double> const& getIntPtSaturation( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const override; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const override; std::vector<double> const& getIntPtSigma( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; std::vector<double> const& getIntPtEpsilon( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; private: diff --git a/ProcessLib/SmallDeformation/LocalAssemblerInterface.h b/ProcessLib/SmallDeformation/LocalAssemblerInterface.h index 40fb04ad7e1405d1a47a56382c193f4b334ab000..243180f244d36aca7d03267beb9e5b5ff5fe202c 100644 --- a/ProcessLib/SmallDeformation/LocalAssemblerInterface.h +++ b/ProcessLib/SmallDeformation/LocalAssemblerInterface.h @@ -32,22 +32,22 @@ struct SmallDeformationLocalAssemblerInterface int const integration_order) = 0; virtual std::vector<double> const& getIntPtFreeEnergyDensity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> getSigma() const = 0; virtual std::vector<double> const& getIntPtSigma( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilon( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; // TODO move to NumLib::ExtrapolatableElement diff --git a/ProcessLib/SmallDeformation/SmallDeformationFEM.h b/ProcessLib/SmallDeformation/SmallDeformationFEM.h index 040b2bcfddec17dd3ccbbc180faf99d91d8a8585..1d1356c165f04d9b1aa7f410f8471bb56bff50c8 100644 --- a/ProcessLib/SmallDeformation/SmallDeformationFEM.h +++ b/ProcessLib/SmallDeformation/SmallDeformationFEM.h @@ -366,8 +366,8 @@ public: std::vector<double> const& getIntPtFreeEnergyDensity( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { cache.clear(); @@ -430,8 +430,8 @@ public: std::vector<double> const& getIntPtSigma( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { static const int kelvin_vector_size = @@ -456,8 +456,8 @@ public: std::vector<double> const& getIntPtEpsilon( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { auto const kelvin_vector_size = diff --git a/ProcessLib/SmallDeformation/SmallDeformationProcess.cpp b/ProcessLib/SmallDeformation/SmallDeformationProcess.cpp index fbcb74cfc3b84ecc3f925b8ca70d1f33e27a6a9d..6d58551a2946a91905153bd290864d769f1a444e 100644 --- a/ProcessLib/SmallDeformation/SmallDeformationProcess.cpp +++ b/ProcessLib/SmallDeformation/SmallDeformationProcess.cpp @@ -146,8 +146,9 @@ void SmallDeformationProcess<DisplacementDim>::initializeConcreteProcess( [fct, num_components]( LocalAssemblerInterface const& loc_asm, const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector< + NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) -> std::vector<double> const& { const unsigned num_int_pts = loc_asm.getNumberOfIntegrationPoints(); diff --git a/ProcessLib/SmallDeformationNonlocal/LocalAssemblerInterface.h b/ProcessLib/SmallDeformationNonlocal/LocalAssemblerInterface.h index 6f368a91c551abf7331f58ba585711cb173acd89..b906af5c082ef71837fc410a1aca7678504dc558 100644 --- a/ProcessLib/SmallDeformationNonlocal/LocalAssemblerInterface.h +++ b/ProcessLib/SmallDeformationNonlocal/LocalAssemblerInterface.h @@ -40,39 +40,39 @@ struct SmallDeformationNonlocalLocalAssemblerInterface double& crack_volume) = 0; virtual std::vector<double> const& getIntPtEpsPV( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsPDXX( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> getKappaD() const = 0; virtual std::vector<double> const& getIntPtDamage( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtFreeEnergyDensity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> getSigma() const = 0; virtual std::vector<double> const& getIntPtSigma( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilon( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; // TODO move to NumLib::ExtrapolatableElement diff --git a/ProcessLib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h b/ProcessLib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h index fcf5bd2a4afe6d6e0e2a0d637ab735756244f3e8..950b03ad50a5eef6f68ece0b24cf36ff1dd85fd6 100644 --- a/ProcessLib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h +++ b/ProcessLib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h @@ -607,8 +607,8 @@ public: std::vector<double> const& getIntPtFreeEnergyDensity( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { cache.clear(); @@ -624,8 +624,8 @@ public: std::vector<double> const& getIntPtEpsPV( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { cache.clear(); @@ -641,8 +641,8 @@ public: std::vector<double> const& getIntPtEpsPDXX( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { cache.clear(); @@ -658,8 +658,8 @@ public: std::vector<double> const& getIntPtSigma( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { static const int kelvin_vector_size = @@ -684,8 +684,8 @@ public: std::vector<double> const& getIntPtEpsilon( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { auto const kelvin_vector_size = @@ -792,8 +792,8 @@ public: std::vector<double> const& getIntPtDamage( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { cache.clear(); diff --git a/ProcessLib/TES/TESLocalAssembler-impl.h b/ProcessLib/TES/TESLocalAssembler-impl.h index 25e75429a3a9bfe907f16177154d2f3fb1191730..e530a7d4fa7074885f4d561b9b254931fccae0f9 100644 --- a/ProcessLib/TES/TESLocalAssembler-impl.h +++ b/ProcessLib/TES/TESLocalAssembler-impl.h @@ -199,10 +199,11 @@ template <typename ShapeFunction_, typename IntegrationMethod_, unsigned GlobalDim> std::vector<double> const& TESLocalAssembler<ShapeFunction_, IntegrationMethod_, GlobalDim>:: - getIntPtSolidDensity(const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const + getIntPtSolidDensity( + const double /*t*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, + std::vector<double>& /*cache*/) const { return _d.getData().solid_density; } @@ -211,10 +212,11 @@ template <typename ShapeFunction_, typename IntegrationMethod_, unsigned GlobalDim> std::vector<double> const& TESLocalAssembler<ShapeFunction_, IntegrationMethod_, GlobalDim>:: - getIntPtLoading(const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& cache) const + getIntPtLoading( + const double /*t*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, + std::vector<double>& cache) const { auto const rho_SR = _d.getData().solid_density; auto const rho_SR_dry = _d.getAssemblyParameters().rho_SR_dry; @@ -234,8 +236,8 @@ template <typename ShapeFunction_, typename IntegrationMethod_, std::vector<double> const& TESLocalAssembler<ShapeFunction_, IntegrationMethod_, GlobalDim>:: getIntPtReactionDampingFactor( - const double /*t*/, GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double /*t*/, std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const { auto const fac = _d.getData().reaction_adaptor->getReactionDampingFactor(); @@ -251,10 +253,11 @@ template <typename ShapeFunction_, typename IntegrationMethod_, unsigned GlobalDim> std::vector<double> const& TESLocalAssembler<ShapeFunction_, IntegrationMethod_, GlobalDim>:: - getIntPtReactionRate(const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const + getIntPtReactionRate( + const double /*t*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, + std::vector<double>& /*cache*/) const { return _d.getData().reaction_rate; } @@ -263,10 +266,11 @@ template <typename ShapeFunction_, typename IntegrationMethod_, unsigned GlobalDim> std::vector<double> const& TESLocalAssembler<ShapeFunction_, IntegrationMethod_, GlobalDim>:: - getIntPtDarcyVelocity(const double /*t*/, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, - std::vector<double>& cache) const + getIntPtDarcyVelocity( + const double /*t*/, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const { auto const n_integration_points = _integration_method.getNumberOfPoints(); diff --git a/ProcessLib/TES/TESLocalAssembler.h b/ProcessLib/TES/TESLocalAssembler.h index c34040057a7271626e09c16d890f77ba1a788f54..7d92327b1c3a810d62c77a75f0b31a196b92d4a1 100644 --- a/ProcessLib/TES/TESLocalAssembler.h +++ b/ProcessLib/TES/TESLocalAssembler.h @@ -34,34 +34,34 @@ public: std::vector<double> const& local_x_prev_ts) = 0; virtual std::vector<double> const& getIntPtSolidDensity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtLoading( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtReactionDampingFactor( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtReactionRate( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtDarcyVelocity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; }; template <typename ShapeFunction_, typename IntegrationMethod_, @@ -99,34 +99,34 @@ public: std::vector<double> const& local_x_prev_ts) override; std::vector<double> const& getIntPtSolidDensity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const override; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const override; std::vector<double> const& getIntPtLoading( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; std::vector<double> const& getIntPtReactionDampingFactor( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; std::vector<double> const& getIntPtReactionRate( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const override; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const override; std::vector<double> const& getIntPtDarcyVelocity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const override; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const override; private: MeshLib::Element const& _element; diff --git a/ProcessLib/TES/TESProcess.cpp b/ProcessLib/TES/TESProcess.cpp index 8e29d55cd4c8cc27278bb84bf027fc5b86b9b8e2..9afb605ab4b8515ee36342722afd675b8949b793 100644 --- a/ProcessLib/TES/TESProcess.cpp +++ b/ProcessLib/TES/TESProcess.cpp @@ -161,14 +161,15 @@ void TESProcess::initializeSecondaryVariables() }; // creates an extrapolator - auto makeEx = [&]( - unsigned const n_components, - std::vector<double> const& (TESLocalAssemblerInterface::*method)( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) - const) -> SecondaryVariableFunctions { + auto makeEx = + [&](unsigned const n_components, + std::vector<double> const& (TESLocalAssemblerInterface::*method)( + const double /*t*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector< + NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, + std::vector<double>& /*cache*/) + const) -> SecondaryVariableFunctions { return ProcessLib::makeExtrapolator(n_components, getExtrapolator(), _local_assemblers, method); }; @@ -317,8 +318,8 @@ NumLib::IterationResult TESProcess::postIterationConcreteProcess( GlobalVector const& TESProcess::computeVapourPartialPressure( const double /*t*/, - GlobalVector const& x, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::unique_ptr<GlobalVector>& result_cache) { assert(&dof_table == _local_to_global_index_map.get()); @@ -349,8 +350,8 @@ GlobalVector const& TESProcess::computeVapourPartialPressure( GlobalVector const& TESProcess::computeRelativeHumidity( double const /*t*/, - GlobalVector const& x, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& xs, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::unique_ptr<GlobalVector>& result_cache) { assert(&dof_table == _local_to_global_index_map.get()); @@ -386,8 +387,8 @@ GlobalVector const& TESProcess::computeRelativeHumidity( GlobalVector const& TESProcess::computeEquilibriumLoading( double const /*t*/, - GlobalVector const& x, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& xs, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::unique_ptr<GlobalVector>& result_cache) { assert(&dof_table == _local_to_global_index_map.get()); diff --git a/ProcessLib/TES/TESProcess.h b/ProcessLib/TES/TESProcess.h index bbc727937ce9ca074296dcc1edcffeafa2168992..4676ecac04ad5f872d0c24cff4b5ad03e1759204 100644 --- a/ProcessLib/TES/TESProcess.h +++ b/ProcessLib/TES/TESProcess.h @@ -73,20 +73,20 @@ private: GlobalVector const& computeVapourPartialPressure( const double t, - GlobalVector const& x, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::unique_ptr<GlobalVector>& result_cache); GlobalVector const& computeRelativeHumidity( const double t, - GlobalVector const& x, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::unique_ptr<GlobalVector>& result_cache); GlobalVector const& computeEquilibriumLoading( const double t, - GlobalVector const& x, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::unique_ptr<GlobalVector>& result_cache); std::vector<std::unique_ptr<TESLocalAssemblerInterface>> _local_assemblers; diff --git a/ProcessLib/ThermalTwoPhaseFlowWithPP/ThermalTwoPhaseFlowWithPPLocalAssembler.h b/ProcessLib/ThermalTwoPhaseFlowWithPP/ThermalTwoPhaseFlowWithPPLocalAssembler.h index 37eb7ab2a103f51df43656b667f9dc3890fd6b88..6a82a844458a4f4ab1c7e1a00e22864e2988e3f1 100644 --- a/ProcessLib/ThermalTwoPhaseFlowWithPP/ThermalTwoPhaseFlowWithPPLocalAssembler.h +++ b/ProcessLib/ThermalTwoPhaseFlowWithPP/ThermalTwoPhaseFlowWithPPLocalAssembler.h @@ -62,16 +62,16 @@ class ThermalTwoPhaseFlowWithPPLocalAssemblerInterface { public: virtual std::vector<double> const& getIntPtSaturation( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtWettingPressure( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; }; template <typename ShapeFunction, typename IntegrationMethod, @@ -149,8 +149,8 @@ public: std::vector<double> const& getIntPtSaturation( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { assert(!_saturation.empty()); @@ -159,8 +159,8 @@ public: std::vector<double> const& getIntPtWettingPressure( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { assert(!_pressure_wetting.empty()); diff --git a/ProcessLib/ThermoHydroMechanics/LocalAssemblerInterface.h b/ProcessLib/ThermoHydroMechanics/LocalAssemblerInterface.h index c528e5ed678b46d0262bfb8abdd8ea8b1e63e2eb..ef3681a5759566248d34e033257f355ff48b9c8a 100644 --- a/ProcessLib/ThermoHydroMechanics/LocalAssemblerInterface.h +++ b/ProcessLib/ThermoHydroMechanics/LocalAssemblerInterface.h @@ -23,21 +23,21 @@ struct LocalAssemblerInterface : public ProcessLib::LocalAssemblerInterface, virtual std::vector<double> getSigma() const = 0; virtual std::vector<double> const& getIntPtSigma( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilon( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtDarcyVelocity( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; }; diff --git a/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM-impl.h b/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM-impl.h index c0c41764f0edf6e3374acc6b85e3c11a881b5c2d..2bd217749980f7982f9b2c02f315298b721aaefc 100644 --- a/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM-impl.h +++ b/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM-impl.h @@ -440,12 +440,12 @@ template <typename ShapeFunctionDisplacement, typename ShapeFunctionPressure, typename IntegrationMethod, int DisplacementDim> std::vector<double> const& ThermoHydroMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, IntegrationMethod, - DisplacementDim>::getIntPtDarcyVelocity(const double t, - GlobalVector const& - current_solution, - NumLib::LocalToGlobalIndexMap const& - dof_table, - std::vector<double>& cache) const + DisplacementDim>:: + getIntPtDarcyVelocity( + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const { auto const num_intpts = _ip_data.size(); diff --git a/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h b/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h index 152913696a0efec716e91a646aee219dca7b2bd6..b8490fd83bf7b1e3b40df9c8b2208bda9a5075eb 100644 --- a/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h +++ b/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h @@ -136,8 +136,8 @@ public: std::vector<double> const& getIntPtDarcyVelocity( const double t, - GlobalVector const& current_solution, - NumLib::LocalToGlobalIndexMap const& dof_table, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; private: @@ -192,8 +192,8 @@ private: std::vector<double> const& getIntPtSigma( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { static const int kelvin_vector_size = @@ -219,8 +219,8 @@ private: virtual std::vector<double> const& getIntPtEpsilon( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { auto const kelvin_vector_size = diff --git a/ProcessLib/ThermoMechanicalPhaseField/LocalAssemblerInterface.h b/ProcessLib/ThermoMechanicalPhaseField/LocalAssemblerInterface.h index 6a768a8937cf0f907f4aaa45661e4c682a8e591a..82b551f145c1a8fb776fbeecd94a3f82fc60a365 100644 --- a/ProcessLib/ThermoMechanicalPhaseField/LocalAssemblerInterface.h +++ b/ProcessLib/ThermoMechanicalPhaseField/LocalAssemblerInterface.h @@ -24,21 +24,21 @@ struct ThermoMechanicalPhaseFieldLocalAssemblerInterface public NumLib::ExtrapolatableElement { virtual std::vector<double> const& getIntPtSigma( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilon( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtHeatFlux( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; }; diff --git a/ProcessLib/ThermoMechanicalPhaseField/ThermoMechanicalPhaseFieldFEM.h b/ProcessLib/ThermoMechanicalPhaseField/ThermoMechanicalPhaseFieldFEM.h index e3dcf0e5bcfbe9b59d45c78e275e0f1d42b01049..0308107da7fc2fa3914802de542193066125c8a1 100644 --- a/ProcessLib/ThermoMechanicalPhaseField/ThermoMechanicalPhaseFieldFEM.h +++ b/ProcessLib/ThermoMechanicalPhaseField/ThermoMechanicalPhaseFieldFEM.h @@ -275,8 +275,8 @@ public: private: std::vector<double> const& getIntPtSigma( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { static const int kelvin_vector_size = @@ -301,8 +301,8 @@ private: std::vector<double> const& getIntPtEpsilon( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { auto const kelvin_vector_size = @@ -327,8 +327,8 @@ private: std::vector<double> const& getIntPtHeatFlux( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { using KelvinVectorType = typename BMatricesType::KelvinVectorType; diff --git a/ProcessLib/ThermoMechanics/LocalAssemblerInterface.h b/ProcessLib/ThermoMechanics/LocalAssemblerInterface.h index bf1ea78dbf28aaef815acfb036104a2076ed322e..4ff9813373b305fd5dc0888c10884ee65f1fda0f 100644 --- a/ProcessLib/ThermoMechanics/LocalAssemblerInterface.h +++ b/ProcessLib/ThermoMechanics/LocalAssemblerInterface.h @@ -34,17 +34,16 @@ struct ThermoMechanicsLocalAssemblerInterface virtual std::vector<double> getEpsilonMechanical() const = 0; virtual std::vector<double> const& getIntPtSigma( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtEpsilon( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const = 0; - }; } // namespace ThermoMechanics diff --git a/ProcessLib/ThermoMechanics/ThermoMechanicsFEM-impl.h b/ProcessLib/ThermoMechanics/ThermoMechanicsFEM-impl.h index 7e51944ba7538578f21e7df462cf6dc2731dc15e..91157581dd5937265c36c64c160dbee8aaab2f59 100644 --- a/ProcessLib/ThermoMechanics/ThermoMechanicsFEM-impl.h +++ b/ProcessLib/ThermoMechanics/ThermoMechanicsFEM-impl.h @@ -596,10 +596,11 @@ template <typename ShapeFunction, typename IntegrationMethod, int DisplacementDim> std::vector<double> const& ThermoMechanicsLocalAssembler< ShapeFunction, IntegrationMethod, DisplacementDim>:: - getIntPtSigma(const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& cache) const + getIntPtSigma( + const double /*t*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, + std::vector<double>& cache) const { static const int kelvin_vector_size = MathLib::KelvinVector::KelvinVectorDimensions<DisplacementDim>::value; @@ -675,10 +676,11 @@ template <typename ShapeFunction, typename IntegrationMethod, int DisplacementDim> std::vector<double> const& ThermoMechanicsLocalAssembler< ShapeFunction, IntegrationMethod, DisplacementDim>:: - getIntPtEpsilon(const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& cache) const + getIntPtEpsilon( + const double /*t*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, + std::vector<double>& cache) const { auto const kelvin_vector_size = MathLib::KelvinVector::KelvinVectorDimensions<DisplacementDim>::value; diff --git a/ProcessLib/ThermoMechanics/ThermoMechanicsFEM.h b/ProcessLib/ThermoMechanics/ThermoMechanicsFEM.h index 028c179967246f0175875b234ca87d578d4d2a3e..144c113791a103048f721238399ecc05d13eb461 100644 --- a/ProcessLib/ThermoMechanics/ThermoMechanicsFEM.h +++ b/ProcessLib/ThermoMechanics/ThermoMechanicsFEM.h @@ -276,9 +276,9 @@ private: std::vector<double> getSigma() const override; std::vector<double> const& getIntPtSigma( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; std::size_t setEpsilon(double const* values); @@ -286,9 +286,9 @@ private: std::vector<double> getEpsilon() const override; std::vector<double> const& getIntPtEpsilon( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, std::vector<double>& cache) const override; std::size_t setEpsilonMechanical(double const* values); diff --git a/ProcessLib/TwoPhaseFlowWithPP/TwoPhaseFlowWithPPLocalAssembler.h b/ProcessLib/TwoPhaseFlowWithPP/TwoPhaseFlowWithPPLocalAssembler.h index 36c5397b053665b471df8805fc3b9fe58d4a9fc5..8788660ea536b993e6fce0b63b802f102eae3885 100644 --- a/ProcessLib/TwoPhaseFlowWithPP/TwoPhaseFlowWithPPLocalAssembler.h +++ b/ProcessLib/TwoPhaseFlowWithPP/TwoPhaseFlowWithPPLocalAssembler.h @@ -57,16 +57,16 @@ class TwoPhaseFlowWithPPLocalAssemblerInterface { public: virtual std::vector<double> const& getIntPtSaturation( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtWetPressure( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; }; template <typename ShapeFunction, typename IntegrationMethod, @@ -141,8 +141,8 @@ public: std::vector<double> const& getIntPtSaturation( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { assert(!_saturation.empty()); @@ -151,8 +151,8 @@ public: std::vector<double> const& getIntPtWetPressure( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { assert(!_pressure_wet.empty()); diff --git a/ProcessLib/TwoPhaseFlowWithPrho/TwoPhaseFlowWithPrhoLocalAssembler.h b/ProcessLib/TwoPhaseFlowWithPrho/TwoPhaseFlowWithPrhoLocalAssembler.h index 0060c6682180371cf78ec646973ed02fa13d432a..c2fd4008d136ed8fbe33222b25ebea5309b9306d 100644 --- a/ProcessLib/TwoPhaseFlowWithPrho/TwoPhaseFlowWithPrhoLocalAssembler.h +++ b/ProcessLib/TwoPhaseFlowWithPrho/TwoPhaseFlowWithPrhoLocalAssembler.h @@ -64,16 +64,16 @@ class TwoPhaseFlowWithPrhoLocalAssemblerInterface { public: virtual std::vector<double> const& getIntPtSaturation( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; virtual std::vector<double> const& getIntPtNonWettingPressure( - const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, - std::vector<double>& /*cache*/) const = 0; + const double t, + std::vector<GlobalVector*> const& x, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table, + std::vector<double>& cache) const = 0; }; template <typename ShapeFunction, typename IntegrationMethod, @@ -149,8 +149,8 @@ public: std::vector<double> const& getIntPtSaturation( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { assert(!_saturation.empty()); @@ -159,8 +159,8 @@ public: std::vector<double> const& getIntPtNonWettingPressure( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { assert(!_pressure_nonwetting.empty()); diff --git a/Tests/NumLib/TestExtrapolation.cpp b/Tests/NumLib/TestExtrapolation.cpp index de9ddc5eb7a46ba869fa376f03c8a82dc93a381e..9bb98871d56229f8b17d724dca4a77b0fe0287c2 100644 --- a/Tests/NumLib/TestExtrapolation.cpp +++ b/Tests/NumLib/TestExtrapolation.cpp @@ -54,22 +54,23 @@ public: virtual std::vector<double> const& getStoredQuantity( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const = 0; virtual std::vector<double> const& getDerivedQuantity( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const = 0; }; using IntegrationPointValuesMethod = std::vector<double> const& ( LocalAssemblerDataInterface::*)(const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib:: - LocalToGlobalIndexMap const& /*dof_table*/ + std::vector<GlobalVector*> const& /*x*/, + std::vector< + NumLib:: + LocalToGlobalIndexMap const*> const& /*dof_table*/ , std::vector<double>& /*cache*/) const; @@ -105,8 +106,8 @@ public: std::vector<double> const& getStoredQuantity( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& /*cache*/) const override { return _int_pt_values; @@ -114,8 +115,8 @@ public: std::vector<double> const& getDerivedQuantity( const double /*t*/, - GlobalVector const& /*current_solution*/, - NumLib::LocalToGlobalIndexMap const& /*dof_table*/, + std::vector<GlobalVector*> const& /*x*/, + std::vector<NumLib::LocalToGlobalIndexMap const*> const& /*dof_table*/, std::vector<double>& cache) const override { cache.clear(); @@ -188,7 +189,7 @@ public: std::pair<GlobalVector const*, GlobalVector const*> extrapolate( IntegrationPointValuesMethod method, const double t, - const GlobalVector& x) const + std::vector<GlobalVector*> const& x) const { auto const extrapolatables = NumLib::makeExtrapolatable(_local_assemblers, method); @@ -212,10 +213,10 @@ private: std::unique_ptr<ExtrapolatorInterface> _extrapolator; }; -void extrapolate(ExtrapolationTestProcess const& pcs, - IntegrationPointValuesMethod method, - GlobalVector const& expected_extrapolated_global_nodal_values, - std::size_t const nnodes, std::size_t const nelements) +void extrapolate( + ExtrapolationTestProcess const& pcs, IntegrationPointValuesMethod method, + std::vector<GlobalVector*> const& expected_extrapolated_global_nodal_values, + std::size_t const nnodes, std::size_t const nelements) { namespace LinAlg = MathLib::LinAlg;