forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
143 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//* 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 "Material.h" | ||
|
||
/** | ||
* Bumps the quadrature to a higher specified order on its active blocks. | ||
*/ | ||
class QuadratureOrderBumper : public Material | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
QuadratureOrderBumper(const InputParameters & parameters); | ||
|
||
protected: | ||
virtual void computeQpProperties() {} | ||
}; |
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,33 @@ | ||
//* 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 "QuadratureOrderBumper.h" | ||
|
||
registerMooseObject("MooseTestApp", QuadratureOrderBumper); | ||
|
||
InputParameters | ||
QuadratureOrderBumper::validParams() | ||
{ | ||
MooseEnum order("AUTO CONSTANT FIRST SECOND THIRD FOURTH FIFTH SIXTH SEVENTH EIGHTH NINTH TENTH " | ||
"ELEVENTH TWELFTH THIRTEENTH FOURTEENTH FIFTEENTH SIXTEENTH SEVENTEENTH " | ||
"EIGHTTEENTH NINTEENTH TWENTIETH", | ||
"AUTO"); | ||
|
||
InputParameters params = Material::validParams(); | ||
params.addParam<MooseEnum>("order", order, "Order of the quadrature"); | ||
return params; | ||
} | ||
|
||
QuadratureOrderBumper::QuadratureOrderBumper(const InputParameters & parameters) | ||
: Material(parameters) | ||
{ | ||
for (auto block : blockIDs()) | ||
_fe_problem.bumpVolumeQRuleOrder(Moose::stringToEnum<Order>(getParam<MooseEnum>("order")), | ||
block); | ||
} |
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,66 @@ | ||
[Mesh] | ||
[gmg] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 1 | ||
ny = 2 | ||
xmin = 0 | ||
xmax = 1 | ||
ymin = 0 | ||
ymax = 2 | ||
[] | ||
|
||
[left] | ||
type = SubdomainBoundingBoxGenerator | ||
input = gmg | ||
block_id = 1 | ||
bottom_left = '0 0 0' | ||
top_right = '1 1 0' | ||
[] | ||
[right] | ||
type = SubdomainBoundingBoxGenerator | ||
input = left | ||
block_id = 2 | ||
bottom_left = '0 1 0' | ||
top_right = '1 2 0' | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[mat2] | ||
type = QuadratureOrderBumper | ||
order = third | ||
block = '1' | ||
[] | ||
[mat] | ||
type = QuadratureOrderBumper | ||
order = tenth | ||
block = '2' | ||
[] | ||
[] | ||
|
||
[Postprocessors] | ||
[block1_qps] | ||
type = NumElemQPs | ||
block = 1 | ||
[] | ||
[block2_qps] | ||
type = NumElemQPs | ||
block = 2 | ||
[] | ||
[] | ||
|
||
[Problem] | ||
type = FEProblem | ||
solve = false | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
[] | ||
|
||
[Outputs] | ||
execute_on = 'timestep_end' | ||
exodus = false | ||
csv = true | ||
[] |
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,2 @@ | ||
time,block1_qps,block2_qps | ||
1,4,36 |
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