|
FacePropertiesTPSA_impl.hpp
Go to the documentation of this file.
75template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
94template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
104template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
116 // Note (from Transmissibility::update): Reserving some space in the hashmap upfront saves quite a bit of time
117 // because resizes are costly for hashmaps and there would be quite a few of them if we would not have a rough idea
142 // Initialize thread safe insert_or_assign for face properties in the grid and separate for boundaries
143 ThreadSafeMapBuilder weightsAvgMap(weightsAvg_, num_threads, MapBuilderInsertionMode::Insert_Or_Assign);
144 ThreadSafeMapBuilder weightsProdMap(weightsProd_, num_threads, MapBuilderInsertionMode::Insert_Or_Assign);
145 ThreadSafeMapBuilder distanceMap(distance_, num_threads, MapBuilderInsertionMode::Insert_Or_Assign);
146 ThreadSafeMapBuilder faceNormalMap(faceNormal_, num_threads, MapBuilderInsertionMode::Insert_Or_Assign);
148 ThreadSafeMapBuilder weightsAvgBoundaryMap(weightsAvgBoundary_, num_threads, MapBuilderInsertionMode::Insert_Or_Assign);
149 ThreadSafeMapBuilder weightsProdBoundaryMap(weightsProdBoundary_, num_threads, MapBuilderInsertionMode::Insert_Or_Assign);
150 ThreadSafeMapBuilder distanceBoundaryMap(distanceBoundary_, num_threads, MapBuilderInsertionMode::Insert_Or_Assign);
151 ThreadSafeMapBuilder faceNormalBoundaryMap(faceNormalBoundary_, num_threads, MapBuilderInsertionMode::Insert_Or_Assign);
183 Scalar distBound = computeDistance_(distanceVector_(inside.faceCenter, inside.elemIdx), faceNormal);
210 if (std::tie(inside.cartElemIdx, inside.elemIdx) > std::tie(outside.cartElemIdx, outside.elemIdx)) {
239 Scalar dist_in = computeDistance_(distanceVector_(inside.faceCenter, inside.elemIdx), faceNormal);
240 Scalar dist_out = computeDistance_(distanceVector_(outside.faceCenter, outside.elemIdx), faceNormal);
304template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
329template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
343template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
357template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
371template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
385template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
401template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
402typename FacePropertiesTPSA<Grid, GridView, ElementMapper, CartesianIndexMapper, Scalar>::DimVector
423template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
424const typename FacePropertiesTPSA<Grid, GridView, ElementMapper, CartesianIndexMapper, Scalar>::DimVector&
441template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
458template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
480template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
518template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
532template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
533typename FacePropertiesTPSA<Grid, GridView, ElementMapper, CartesianIndexMapper, Scalar>::DimVector
554template<class Grid, class GridView, class ElementMapper, class CartesianIndexMapper, class Scalar>
568 const std::vector<double>& ymodulus = this->lookUpData_.assignFieldPropsDoubleOnLeaf(fp, "YMODULE");
569 const std::vector<double>& lameParam = this->lookUpData_.assignFieldPropsDoubleOnLeaf(fp, "LAME");
578 const std::vector<double>& ymodulus = this->lookUpData_.assignFieldPropsDoubleOnLeaf(fp, "YMODULE");
579 const std::vector<double>& pratio = this->lookUpData_.assignFieldPropsDoubleOnLeaf(fp, "PRATIO");
586 const std::vector<double>& lameParam = this->lookUpData_.assignFieldPropsDoubleOnLeaf(fp, "LAME");
587 const std::vector<double>& pratio = this->lookUpData_.assignFieldPropsDoubleOnLeaf(fp, "PRATIO");
594 throw std::logic_error("Cannot read shear modulus data from ecl state, SMODULUS keyword missing, "
void extractSModulus_() Extract shear modulus from eclState. Definition: FacePropertiesTPSA_impl.hpp:556 void finishInit() Compute TPSA face properties. Definition: FacePropertiesTPSA_impl.hpp:96 void computeCellProperties(const Intersection &intersection, FaceInfo &inside, FaceInfo &outside, DimVector &faceNormal, std::false_type) const Compute face properties from general DUNE grid. Definition: FacePropertiesTPSA_impl.hpp:461 Scalar weightProduct(unsigned elemIdx1, unsigned elemIdx2) const Product of weights at interface between two elements. Definition: FacePropertiesTPSA_impl.hpp:345 DimVector cellFaceNormal(unsigned elemIdx1, unsigned elemIdx2) Cell face normal at interface between two elements. Definition: FacePropertiesTPSA_impl.hpp:404 Dune::FieldVector< Scalar, dimWorld > DimVector Definition: FacePropertiesTPSA.hpp:53 Scalar weightAverage(unsigned elemIdx1, unsigned elemIdx2) const Average (half-)weight at interface between two elements. Definition: FacePropertiesTPSA_impl.hpp:306 Scalar normalDistanceBoundary(unsigned elemIdx1, unsigned boundaryFaceIdx) const Distance to boundary interface. Definition: FacePropertiesTPSA_impl.hpp:387 Scalar weightAverageBoundary(unsigned elemIdx1, unsigned boundaryFaceIdx) const Average (half-)weight at boundary interface. Definition: FacePropertiesTPSA_impl.hpp:331 const DimVector & cellFaceNormalBoundary(unsigned elemIdx1, unsigned boundaryFaceIdx) const Cell face normal of boundary interface. Definition: FacePropertiesTPSA_impl.hpp:426 Scalar computeWeight_(const Scalar distance, const Scalar smod) Compute weight ratio between distance and shear modulus. Definition: FacePropertiesTPSA_impl.hpp:520 void update() Compute TPSA face properties. Definition: FacePropertiesTPSA_impl.hpp:106 Scalar computeDistance_(const DimVector &distVec, const DimVector &faceNormal) Compute normal distance from cell center to face center. Definition: FacePropertiesTPSA_impl.hpp:443 DimVector distanceVector_(const DimVector &faceCenter, const unsigned &cellIdx) const Distance vector from cell center to face center. Definition: FacePropertiesTPSA_impl.hpp:535 Scalar normalDistance(unsigned elemIdx1, unsigned elemIdx2) const Distance between two elements. Definition: FacePropertiesTPSA_impl.hpp:373 FacePropertiesTPSA(const EclipseState &eclState, const GridView &gridView, const CartesianIndexMapper &cartMapper, const Grid &grid, std::function< std::array< double, dimWorld >(int)> centroids) Constructor. Definition: FacePropertiesTPSA_impl.hpp:77 Scalar weightProductBoundary(unsigned elemIdx1, unsigned boundaryFaceIdx) const Product of weights at boundary interface. Definition: FacePropertiesTPSA_impl.hpp:359 static unsigned maxThreads() Return the maximum number of threads of the current process. Definition: threadmanager.hpp:66 std::uint64_t isIdTPSA(std::uint32_t elemIdx1, std::uint32_t elemIdx2) Definition: FacePropertiesTPSA_impl.hpp:54 Definition: blackoilbioeffectsmodules.hh:45 Definition: FacePropertiesTPSA.hpp:83 unsigned cartElemIdx Definition: FacePropertiesTPSA.hpp:87 DimVector faceCenter Definition: FacePropertiesTPSA.hpp:84 |