mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: support zip/unzip rows of symmTensor (#2487)
- was previously only implemented for tensor
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
Copyright (C) 2019-2021 OpenCFD Ltd.
|
||||
Copyright (C) 2019-2022 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -212,13 +212,13 @@ template<class Cmpt, template<class> class PatchField, class GeoMesh>
|
||||
void Foam::unzipRow
|
||||
(
|
||||
const GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>& input,
|
||||
const vector::components cmpt,
|
||||
const direction idx,
|
||||
GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& result
|
||||
)
|
||||
{
|
||||
Foam::unzipRow(input.primitiveField(), cmpt, result.primitiveFieldRef());
|
||||
Foam::unzipRow(input.primitiveField(), idx, result.primitiveFieldRef());
|
||||
|
||||
Foam::unzipRow(input.boundaryField(), cmpt, result.boundaryFieldRef());
|
||||
Foam::unzipRow(input.boundaryField(), idx, result.boundaryFieldRef());
|
||||
}
|
||||
|
||||
|
||||
@ -226,13 +226,13 @@ template<class Cmpt, template<class> class PatchField, class GeoMesh>
|
||||
void Foam::unzipCol
|
||||
(
|
||||
const GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>& input,
|
||||
const vector::components cmpt,
|
||||
const direction idx,
|
||||
GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& result
|
||||
)
|
||||
{
|
||||
Foam::unzipCol(input.primitiveField(), cmpt, result.primitiveFieldRef());
|
||||
Foam::unzipCol(input.primitiveField(), idx, result.primitiveFieldRef());
|
||||
|
||||
Foam::unzipCol(input.boundaryField(), cmpt, result.boundaryFieldRef());
|
||||
Foam::unzipCol(input.boundaryField(), idx, result.boundaryFieldRef());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user