-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename the Geometry-UOs to MoveNodes meshmodifiers for consistency
- Loading branch information
1 parent
af6bed7
commit 8dbcaaf
Showing
12 changed files
with
89 additions
and
65 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
framework/doc/content/source/meshmodifiers/MoveNodesToSphere.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# MoveNodesToSphere | ||
|
||
!syntax description /UserObjects/MoveNodesToSphere | ||
|
||
Moves all nodes from the supplied [!param](/UserObjects/MoveNodesToSphere/boundary) or [!param](/UserObjects/MoveNodesToSphere/block) | ||
to the surface of the sphere specified by the [!param](/UserObjects/MoveNodesToSphere/center) and | ||
[!param](/UserObjects/MoveNodesToSphere/radius) parameters. | ||
|
||
This is performed by default during adaptivity to allow adaptive refinement of curved geometries. | ||
It can also be performed using regular execution schedules specified by the [!param](/UserObjects/MoveNodesToSphere/execute_on) | ||
parameter. | ||
|
||
!syntax parameters /UserObjects/MoveNodesToSphere | ||
|
||
!syntax inputs /UserObjects/MoveNodesToSphere | ||
|
||
!syntax children /UserObjects/MoveNodesToSphere |
13 changes: 0 additions & 13 deletions
13
framework/doc/content/source/userobjects/GeometrySphere.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#include "MoveNodesToSphere.h" | ||
|
||
registerMooseObject("MooseApp", MoveNodesToSphere); | ||
registerMooseObjectRenamed("MooseApp", GeometrySphere, "06/30/2025 24:00", MoveNodesToSphere); | ||
|
||
InputParameters | ||
MoveNodesToSphere::validParams() | ||
{ | ||
InputParameters params = MoveNodesToGeometryModifierBase::validParams(); | ||
params.addClassDescription( | ||
"Snap nodes to the surface of a sphere either during adaptivity or on execution"); | ||
params.addParam<Point>("center", "Sphere center"); | ||
params.addParam<Real>("radius", "Sphere radius"); | ||
return params; | ||
} | ||
|
||
MoveNodesToSphere::MoveNodesToSphere(const InputParameters & parameters) | ||
: MoveNodesToGeometryModifierBase(parameters), | ||
_center(getParam<Point>("center")), | ||
_radius(getParam<Real>("radius")) | ||
{ | ||
} | ||
|
||
void | ||
MoveNodesToSphere::snapNode(Node & node) | ||
{ | ||
const Point o = node - _center; | ||
const Real r = o.norm(); | ||
node = o * _radius / r + _center; | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.