Cardinal
Loading...
Searching...
No Matches
NekMeshDeformation.h
Go to the documentation of this file.
1/********************************************************************/
2/* SOFTWARE COPYRIGHT NOTIFICATION */
3/* Cardinal */
4/* */
5/* (c) 2021 UChicago Argonne, LLC */
6/* ALL RIGHTS RESERVED */
7/* */
8/* Prepared by UChicago Argonne, LLC */
9/* Under Contract No. DE-AC02-06CH11357 */
10/* With the U. S. Department of Energy */
11/* */
12/* Prepared by Battelle Energy Alliance, LLC */
13/* Under Contract No. DE-AC07-05ID14517 */
14/* With the U. S. Department of Energy */
15/* */
16/* See LICENSE for full restrictions */
17/********************************************************************/
18
19#pragma once
20
21#include "CardinalEnums.h"
22
25{
26public:
27 static InputParameters validParams();
28
29 NekMeshDeformation(const InputParameters & parameters);
30
32
33 virtual void sendDataToNek() override;
34
35protected:
38
41
49
51 double * _displacement_x = nullptr;
52
54 double * _displacement_y = nullptr;
55
57 double * _displacement_z = nullptr;
58
60 double * _mesh_velocity_elem = nullptr;
61};
Definition FieldTransferBase.h:29
Couples NekRS and MOOSE through mesh displacements.
Definition NekMeshDeformation.h:25
void sendBoundaryDeformationToNek()
Send boundary deformation to nekRS.
NekMeshDeformation(const InputParameters &parameters)
double * _displacement_y
displacement in y for all nodes from MOOSE, for moving mesh problems
Definition NekMeshDeformation.h:54
static InputParameters validParams()
void sendVolumeDeformationToNek()
Send volume mesh deformation flux to nekRS.
virtual void sendDataToNek() override
Send data to Nek.
double * _mesh_velocity_elem
mesh velocity for a given element, used internally for calculating mesh velocity over one element
Definition NekMeshDeformation.h:60
double * _displacement_x
displacement in x for all nodes from MOOSE, for moving mesh problems
Definition NekMeshDeformation.h:51
void calculateMeshVelocity(int e, const field::NekWriteEnum &field)
double * _displacement_z
displacement in z for all nodes from MOOSE, for moving mesh problems
Definition NekMeshDeformation.h:57
Definition CardinalEnums.h:93
NekWriteEnum
Enumeration of possible fields to write in nekRS.
Definition CardinalEnums.h:119