Skip to content
Snippets Groups Projects
Select Git revision
  • 7d36eefe44e22ec2433d4a93c733f1278e0316f6
  • develop default protected
  • save_clemence
  • feature/composite-scheme-other-fluxes
  • feature/advection
  • origin/stage/bouguettaia
  • feature/local-dt-fsi
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • feature/kinetic-schemes
  • feature/composite-scheme-sources
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

README.md

Blame
  • GnuplotWriterRaw.hpp 1.80 KiB
    #ifndef GNUPLOT_WRITER_RAW_HPP
    #define GNUPLOT_WRITER_RAW_HPP
    
    #include <output/GnuplotWriterBase.hpp>
    
    #include <algebra/TinyMatrix.hpp>
    #include <algebra/TinyVector.hpp>
    #include <mesh/MeshTraits.hpp>
    #include <output/OutputNamedItemValueSet.hpp>
    
    class MeshVariant;
    
    #include <optional>
    #include <string>
    
    class GnuplotWriterRaw final : public GnuplotWriterBase
    {
     private:
      template <typename DataType, ItemType item_type>
      size_t _itemDataNbRow(const ItemValue<DataType, item_type>&) const;
    
      template <typename DataType, ItemType item_type>
      size_t _itemDataNbRow(const ItemArray<DataType, item_type>&) const;
    
      template <MeshConcept MeshType, ItemType item_type>
      void _writeItemDatas(const MeshType& mesh,
                           const OutputNamedItemDataSet& output_named_item_data_set,
                           std::ostream& fout) const;
    
      template <MeshConcept MeshType>
      void _write(const MeshType& mesh,
                  const OutputNamedItemDataSet& output_named_item_value_set,
                  std::optional<double> time) const;
    
      void _writeAtTime(const MeshVariant& mesh_v,
                        const std::vector<std::shared_ptr<const INamedDiscreteData>>& named_discrete_data_list,
                        double time) const final;
    
      void _write(const MeshVariant& mesh_v,
                  const std::vector<std::shared_ptr<const INamedDiscreteData>>& named_discrete_data_list) const final;
    
      void _writeMesh(const MeshVariant& mesh_v) const final;
    
     public:
      Type
      type() const final
      {
        return Type::gnuplot_raw;
      }
    
      GnuplotWriterRaw(const std::string& base_filename) : GnuplotWriterBase(base_filename) {}
    
      GnuplotWriterRaw(const std::string& base_filename, const double time_period)
        : GnuplotWriterBase(base_filename, time_period)
      {}
    
      ~GnuplotWriterRaw() = default;
    };
    
    #endif   // GNUPLOT_WRITER_RAW_HPP