OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-428-g16181832 source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
►
Applications
►
BaseLib
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
►
MaterialLib
►
MathLib
►
MeshGeoToolsLib
▼
MeshLib
►
Elements
►
IO
►
MeshSearch
▼
Utils
►
addPropertyToMesh.h
►
createMaterialIDsBasedSubMesh.cpp
►
createMaterialIDsBasedSubMesh.h
►
createMeshFromElementSelection.cpp
►
createMeshFromElementSelection.h
►
DuplicateMeshComponents.cpp
►
DuplicateMeshComponents.h
►
GetElementRotationMatrices.cpp
►
GetElementRotationMatrices.h
►
getMaxiumElementEdgeLengths.cpp
►
getMaxiumElementEdgeLengths.h
►
getMeshElementsForMaterialIDs.cpp
►
getMeshElementsForMaterialIDs.h
►
getOrCreateMeshProperty.h
►
GetSpaceDimension.cpp
►
GetSpaceDimension.h
►
IntegrationPointWriter.cpp
►
IntegrationPointWriter.h
►
Is2DMeshOnRotatedVerticalPlane.cpp
►
Is2DMeshOnRotatedVerticalPlane.h
►
scaleMeshPropertyVector.cpp
►
scaleMeshPropertyVector.h
►
SetMeshSpaceDimension.cpp
►
SetMeshSpaceDimension.h
►
transformMeshToNodePartitionedMesh.cpp
►
transformMeshToNodePartitionedMesh.h
►
Vtk
►
CoordinateSystem.cpp
►
CoordinateSystem.h
►
ElementCoordinatesMappingLocal.cpp
►
ElementCoordinatesMappingLocal.h
ElementStatus.cpp
►
ElementStatus.h
►
findElementsWithinRadius.cpp
►
findElementsWithinRadius.h
►
Location.cpp
►
Location.h
►
Mesh.cpp
►
Mesh.h
►
MeshEnums.cpp
►
MeshEnums.h
►
MeshSubset.h
Node.cpp
►
Node.h
►
NodeAdjacencyTable.h
►
NodePartitionedMesh.cpp
►
NodePartitionedMesh.h
►
Properties-impl.h
Properties.cpp
►
Properties.h
►
PropertyVector.h
►
VtkOGSEnum.cpp
►
VtkOGSEnum.h
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
scaleMeshPropertyVector.cpp
Go to the documentation of this file.
1
12
#include "
scaleMeshPropertyVector.h
"
13
14
#include "
MeshLib/Mesh.h
"
15
16
namespace
MeshLib
17
{
18
void
scaleMeshPropertyVector
(
MeshLib::Mesh
& mesh,
19
std::string
const
& property_name,
20
double
factor)
21
{
22
if
(!mesh.
getProperties
().
existsPropertyVector
<
double
>(property_name))
23
{
24
WARN
(
"Did not find PropertyVector '{:s}' for scaling."
, property_name);
25
return
;
26
}
27
auto
& pv = *mesh.
getProperties
().
getPropertyVector
<
double
>(property_name);
28
std::transform(pv.begin(), pv.end(), pv.begin(),
29
[factor](
auto
const
& v) { return v * factor; });
30
}
18
void
scaleMeshPropertyVector
(
MeshLib::Mesh
& mesh, {
…
}
31
}
// namespace MeshLib
WARN
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:40
Mesh.h
Definition of the Mesh class.
MeshLib::Mesh
Definition
Mesh.h:45
MeshLib::Mesh::getProperties
Properties & getProperties()
Definition
Mesh.h:136
MeshLib::Properties::existsPropertyVector
bool existsPropertyVector(std::string_view name) const
Definition
Properties.h:74
MeshLib::Properties::getPropertyVector
PropertyVector< T > const * getPropertyVector(std::string_view name) const
MeshLib
Definition
ProjectData.h:41
MeshLib::scaleMeshPropertyVector
void scaleMeshPropertyVector(MeshLib::Mesh &mesh, std::string const &property_name, double factor)
Definition
scaleMeshPropertyVector.cpp:18
scaleMeshPropertyVector.h
MeshLib
Utils
scaleMeshPropertyVector.cpp
Generated by
1.12.0