Page MenuHomec4science

projection_finite_strain.hh
No OneTemporary

File Metadata

Created
Thu, May 2, 21:44

projection_finite_strain.hh

/**
* @file projection_finite_strain.hh
*
* @author Till Junge <till.junge@altermail.ch>
*
* @date 05 Dec 2017
*
* @brief Class for standard finite-strain gradient projections see de Geus et
* al. (https://doi.org/10.1016/j.cma.2016.12.032) for derivation
*
* Copyright © 2017 Till Junge
*
* µSpectre is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3, or (at
* your option) any later version.
*
* µSpectre is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with µSpectre; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* * Boston, MA 02111-1307, USA.
*
* Additional permission under GNU GPL version 3 section 7
*
* If you modify this Program, or any covered work, by linking or combining it
* with proprietary FFT implementations or numerical libraries, containing parts
* covered by the terms of those libraries' licenses, the licensors of this
* Program grant you additional permission to convey the resulting work.
*/
#ifndef PROJECTION_FINITE_STRAIN_H
#define PROJECTION_FINITE_STRAIN_H
#include "fft/projection_default.hh"
#include "common/common.hh"
#include "common/field_collection.hh"
#include "common/field_map.hh"
namespace muSpectre {
/**
* Implements the finite strain gradient projection operator as
* defined in de Geus et
* al. (https://doi.org/10.1016/j.cma.2016.12.032) for derivation
*/
template <Dim_t DimS, Dim_t DimM>
class ProjectionFiniteStrain: public ProjectionDefault<DimS, DimM>
{
public:
using Parent = ProjectionDefault<DimS, DimM>; //!< base class
//! polymorphic pointer to FFT engines
using FFTEngine_ptr = typename Parent::FFTEngine_ptr;
using Ccoord = typename Parent::Ccoord; //!< cell coordinates type
using Rcoord = typename Parent::Rcoord; //!< spatial coordinates type
//! local field collection (for Fourier-space representations)
using LFieldCollection_t = LocalFieldCollection<DimS>;
//! iterable operator
using Proj_map = T4MatrixFieldMap<LFieldCollection_t, Real, DimM>;
//! iterable vectorised version of the Fourier-space tensor field
using Vector_map = MatrixFieldMap<LFieldCollection_t, Complex, DimM*DimM, 1>;
//! Default constructor
ProjectionFiniteStrain() = delete;
//! Constructor with fft_engine
ProjectionFiniteStrain(FFTEngine_ptr engine, Rcoord lengths);
//! Copy constructor
ProjectionFiniteStrain(const ProjectionFiniteStrain &other) = delete;
//! Move constructor
ProjectionFiniteStrain(ProjectionFiniteStrain &&other) = default;
//! Destructor
virtual ~ProjectionFiniteStrain() = default;
//! Copy assignment operator
ProjectionFiniteStrain& operator=(const ProjectionFiniteStrain &other) = delete;
//! Move assignment operator
ProjectionFiniteStrain& operator=(ProjectionFiniteStrain &&other) = default;
//! initialises the fft engine (plan the transform)
virtual void initialise(FFT_PlanFlags flags = FFT_PlanFlags::estimate) override final;
protected:
private:
};
} // muSpectre
#endif /* PROJECTION_FINITE_STRAIN_H */

Event Timeline