CpGridVanguard.hpp
Go to the documentation of this file.
103 using TransmissibilityType = Transmissibility<Grid, GridView, ElementMapper, CartesianIndexMapper, Scalar>;
120 int compressedIndexForInteriorLGR(const std::string& lgr_tag, const Connection& conn) const override
128 const auto lgr_cartesian_index = (lgr_ijk[2]*lgr_dim[0]*lgr_dim[1]) + (lgr_ijk[1]*lgr_dim[0]) + (lgr_ijk[0]);
143 throw std::runtime_error("Input specifies energy while simulator has disabled it, try xxx_energy");
147 throw std::runtime_error("Input specifies no energy while simulator has energy, try run without _energy");
153 throw std::runtime_error("Input specifies diffusion while simulator has disabled it, try xxx_diffusion");
This file ensures that flow can be compiled in the presence of dune-fem. Declares the properties required by the black oil model. Definition: CollectDataOnIORank.hpp:49 const GridView & gridView() const Returns a reference to the grid view to be used. Definition: basevanguard.hh:70 Helper class for grid instantiation of ECL file-format using problems. Definition: CpGridVanguard.hpp:90 GetPropType< TypeTag, Properties::Indices > Indices Definition: CpGridVanguard.hpp:105 void releaseGlobalTransmissibilities() Free the memory occupied by the global transmissibility object. Definition: CpGridVanguard.hpp:215 void addLgrs() Add LGRs and update Leaf Grid View in the simulation grid. Definition: CpGridVanguard.hpp:264 const std::string & zoltanParams() const override Definition: CpGridVanguard.hpp:340 double zoltanPhgEdgeSizeThreshold() const override Definition: CpGridVanguard.hpp:345 const TransmissibilityType & globalTransmissibility() const Definition: CpGridVanguard.hpp:220 static constexpr int dimensionworld Definition: CpGridVanguard.hpp:104 static constexpr bool waterEnabled Definition: CpGridVanguard.hpp:106 CpGridVanguard(Simulator &simulator) Definition: CpGridVanguard.hpp:113 unsigned int gridIdxToEquilGridIdx(unsigned int elemIndex) const Definition: CpGridVanguard.hpp:293 GetPropType< TypeTag, Properties::EquilGrid > EquilGrid Definition: CpGridVanguard.hpp:101 int compressedIndexForInteriorLGR(const std::string &lgr_tag, const Connection &conn) const override Definition: CpGridVanguard.hpp:120 unsigned int gridEquilIdxToGridIdx(unsigned int elemIndex) const Definition: CpGridVanguard.hpp:289 const std::string & metisParams() const override Definition: CpGridVanguard.hpp:350 std::function< std::array< double, dimensionworld >(int)> cellCentroids() const Get function to query cell centroids for a distributed grid. Definition: CpGridVanguard.hpp:304 std::unique_ptr< TransmissibilityType > globalTrans_ Definition: CpGridVanguard.hpp:366 void loadBalance() Distribute the simulation grid over multiple processes. Definition: CpGridVanguard.hpp:231 Transmissibility< Grid, GridView, ElementMapper, CartesianIndexMapper, Scalar > TransmissibilityType Definition: CpGridVanguard.hpp:103 const std::vector< int > & globalCell() Definition: CpGridVanguard.hpp:309 double getTransmissibility(unsigned I, unsigned J) const override Definition: CpGridVanguard.hpp:334 Helper class for grid instantiation of ECL file-format using problems. Definition: FlowBaseVanguard.hpp:84 void updateCartesianToCompressedMapping_() Definition: FlowBaseVanguard.hpp:333 void updateCellThickness_() Definition: FlowBaseVanguard.hpp:378 void updateCellDepths_() Definition: FlowBaseVanguard.hpp:355 void callImplementationInit() Definition: FlowBaseVanguard.hpp:321 std::optional< std::vector< std::unordered_map< std::size_t, std::size_t > > > lgrMappers_ Mapping between LGR cartesian and compressed cells. It is initialized as it is called. Definition: FlowBaseVanguard.hpp:447 std::function< std::array< double, dimensionworld >(int)> cellCentroids_(const CartMapper &cartMapper, const bool &isCpGrid) const Get function to query cell centroids for a distributed grid. Definition: FlowBaseVanguard.hpp:301 int numJacobiBlocks() const Number of blocks in the Block-Jacobi preconditioner. Definition: FlowGenericVanguard.hpp:247 const Schedule & schedule() const Return a reference to the object that managages the ECL schedule. Definition: FlowGenericVanguard.hpp:176 std::string zoltanParams_ Definition: FlowGenericVanguard.hpp:386 bool serialPartitioning() const Parameter that decides if partitioning for parallel runs should be performed on a single process only... Definition: FlowGenericVanguard.hpp:279 ParallelWellStruct parallelWells_ Information about wells in parallel. Definition: FlowGenericVanguard.hpp:425 bool enableDistributedWells() const Whether perforations of a well might be distributed. Definition: FlowGenericVanguard.hpp:307 const EclipseState & eclState() const Return a reference to the internalized ECL deck. Definition: FlowGenericVanguard.hpp:167 double imbalanceTol() const Parameter that sets the imbalance tolarance, depending on the chosen partition method. Definition: FlowGenericVanguard.hpp:286 double zoltanPhgEdgeSizeThreshold_ Definition: FlowGenericVanguard.hpp:385 const std::string & externalPartitionFile() const Definition: FlowGenericVanguard.hpp:298 bool enableEclOutput() const Whether or not to emit result files that are compatible with a commercial reservoir simulator. Definition: FlowGenericVanguard.hpp:314 bool ownersFirst() const Parameter that decide if cells owned by rank are ordered before ghost cells. Definition: FlowGenericVanguard.hpp:259 Dune::EdgeWeightMethod edgeWeightsMethod() const Parameter deciding the edge-weight strategy of the load balancer. Definition: FlowGenericVanguard.hpp:241 Dune::PartitionMethod partitionMethod() const Parameter deciding which partition method to use. Definition: FlowGenericVanguard.hpp:272 bool allow_splitting_inactive_wells_ Definition: FlowGenericVanguard.hpp:395 std::string metisParams_ Definition: FlowGenericVanguard.hpp:388 Definition: GenericCpGridVanguard.hpp:79 const CartesianIndexMapper & cartesianIndexMapper() const Returns the object which maps a global element index of the simulation grid to the corresponding elem... void doCreateGrids_(EclipseState &eclState) void doLoadBalance_(const Dune::EdgeWeightMethod edgeWeightsMethod, const bool ownersFirst, const bool addCorners, const int numOverlap, const Dune::PartitionMethod partitionMethod, const bool serialPartitioning, const bool enableDistributedWells, const bool allowSplittingInactiveWells, const double imbalanceTol, const GetPropType< TypeTag, Properties::GridView > &gridView, const Schedule &schedule, EclipseState &eclState, FlowGenericVanguard::ParallelWellStruct ¶llelWells, const int numJacobiBlocks, const bool enableEclOutput) Distribute the simulation grid over multiple processes. void distributeFieldProps_(EclipseState &eclState) static void setExternalLoadBalancer(const std::function< std::vector< int >(const Dune::CpGrid &)> &loadBalancer) Sets a function that returns external load balancing information when passed the grid. Definition: GenericCpGridVanguard.hpp:125 Dune::CpGrid & grid() Return a reference to the simulation grid. Definition: GenericCpGridVanguard.hpp:93 std::unique_ptr< Dune::CpGrid > grid_ Definition: GenericCpGridVanguard.hpp:232 void addLgrsUpdateLeafView(const LgrCollection &lgrCollection, const int lgrsSize, Dune::CpGrid &grid) void doFilterConnections_(Schedule &schedule) Definition: Transmissibility.hpp:54 Definition: GenericCpGridVanguard.hpp:57 Defines the common properties required by the porous medium multi-phase models. Definition: blackoilmodel.hh:79 Definition: blackoilboundaryratevector.hh:39 typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(.... Definition: propertysystem.hh:233 GetPropType< TypeTag, Properties::Grid > type Definition: CpGridVanguard.hpp:71 Definition: FlowBaseVanguard.hpp:70 Dune::CpGrid type Definition: CpGridVanguard.hpp:67 Definition: CpGridVanguard.hpp:55 std::tuple< FlowBaseVanguard > InheritsFrom Definition: CpGridVanguard.hpp:56 Property which provides a Vanguard (manages grids) Definition: basicproperties.hh:96 |