forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
812 additions
and
488 deletions.
There are no files selected for viewing
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,36 @@ | ||
//* 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 | ||
|
||
#pragma once | ||
|
||
#include "AuxKernel.h" | ||
|
||
class NodalPatchRecoveryBase; | ||
|
||
class NodalPatchRecoveryAuxBase : public AuxKernel | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
NodalPatchRecoveryAuxBase(const InputParameters & parameters); | ||
|
||
/** | ||
* Block restrict elements on which to perform the variable/property nodal recovery. | ||
*/ | ||
void blockRestrictElements(std::vector<dof_id_type> & elem_ids, | ||
const std::vector<dof_id_type> & node_to_elem_pair_elems) const; | ||
|
||
protected: | ||
virtual Real computeValue() override; | ||
|
||
/// Override this to get the fitted value form a Nodal Patch Recovery User Object | ||
virtual Real nodalPatchRecovery() = 0; | ||
|
||
std::vector<dof_id_type> _elem_ids; | ||
}; |
30 changes: 30 additions & 0 deletions
30
framework/include/auxkernels/ProjectedMaterialPropertyNodalPatchRecoveryAux.h
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,30 @@ | ||
//* 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 | ||
|
||
#pragma once | ||
|
||
#include "NodalPatchRecoveryAuxBase.h" | ||
|
||
/// Forward declare user object | ||
class ProjectedStatefulMaterialNodalPatchRecoveryBase; | ||
|
||
class ProjectedMaterialPropertyNodalPatchRecoveryAux : public NodalPatchRecoveryAuxBase | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
ProjectedMaterialPropertyNodalPatchRecoveryAux(const InputParameters & parameters); | ||
|
||
protected: | ||
virtual Real nodalPatchRecovery() override; | ||
|
||
private: | ||
const ProjectedStatefulMaterialNodalPatchRecoveryBase & _npr; | ||
const unsigned int _component; | ||
}; |
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
Oops, something went wrong.