ENH: the boundary value of the regularised field of design variables
(aTilda) in topology optimisation can now be provided through the 'wallValue' in the regularisation dictionary (defaults to 1)
This commit is contained in:
parent
3cd2b2c692
commit
28c538f3e1
@ -5,8 +5,8 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2021 PCOpt/NTUA
|
Copyright (C) 2021-2023 PCOpt/NTUA
|
||||||
Copyright (C) 2021 FOSS GP
|
Copyright (C) 2021-2023 FOSS GP
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -92,7 +92,7 @@ void Foam::Helmholtz::solveEqn
|
|||||||
const fvPatch& patch = mesh.boundary()[patchI];
|
const fvPatch& patch = mesh.boundary()[patchI];
|
||||||
if (isA<wallFvPatch>(patch))
|
if (isA<wallFvPatch>(patch))
|
||||||
{
|
{
|
||||||
bTilda.boundaryFieldRef()[patchI] == scalar(1);
|
bTilda.boundaryFieldRef()[patchI] == wallValue_;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -162,7 +162,8 @@ Foam::Helmholtz::Helmholtz
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
regularisationPDE(mesh, dict, zones),
|
regularisationPDE(mesh, dict, zones),
|
||||||
solveOnActiveCells_(dict.getOrDefault<bool>("solveOnActiveCells", false))
|
solveOnActiveCells_(dict.getOrDefault<bool>("solveOnActiveCells", false)),
|
||||||
|
wallValue_(dict.getOrDefault<scalar>("wallValue", 1))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2021 PCOpt/NTUA
|
Copyright (C) 2021-2023 PCOpt/NTUA
|
||||||
Copyright (C) 2021 FOSS GP
|
Copyright (C) 2021-2023 FOSS GP
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -75,6 +75,9 @@ protected:
|
|||||||
//- active cell zones
|
//- active cell zones
|
||||||
bool solveOnActiveCells_;
|
bool solveOnActiveCells_;
|
||||||
|
|
||||||
|
//- Fixed value at wall boundaries. Defaults to 1
|
||||||
|
scalar wallValue_;
|
||||||
|
|
||||||
|
|
||||||
// Protected Member Functions
|
// Protected Member Functions
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user