-
Notifications
You must be signed in to change notification settings - Fork 13
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
1 parent
26cdb09
commit 1d3feae
Showing
16 changed files
with
460 additions
and
199 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"files.associations": { | ||
"ADStokesStressDivergence.C": "cpp", | ||
"ADStokesIncompressibility.C": "cpp" | ||
} | ||
} |
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,25 @@ | ||
//* 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 "ADVectorKernel.h" | ||
|
||
class ADStokesPressure : public ADVectorKernel | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
ADStokesPressure(const InputParameters & parameters); | ||
|
||
protected: | ||
virtual ADReal computeQpResidual() override; | ||
|
||
const ADVariableGradient & _grad_pressure; | ||
}; |
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,25 @@ | ||
//* 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 "ADVectorKernel.h" | ||
|
||
class ADStokesPressureByParts : public ADVectorKernel | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
ADStokesPressureByParts(const InputParameters & parameters); | ||
|
||
protected: | ||
virtual ADReal computeQpResidual() override; | ||
|
||
const ADVariableValue & _pressure; | ||
}; |
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,35 @@ | ||
//* 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 "ADStokesPressure.h" | ||
|
||
registerMooseObject("DeerApp", ADStokesPressure); | ||
|
||
InputParameters | ||
ADStokesPressure::validParams() | ||
{ | ||
InputParameters params = ADVectorKernel::validParams(); | ||
params.addClassDescription("The pressure part of the velocity kernel for Stokes flow, do not integrate by parts"); | ||
|
||
params.addRequiredCoupledVar("pressure", "The pressure"); | ||
|
||
return params; | ||
} | ||
|
||
ADStokesPressure::ADStokesPressure(const InputParameters & parameters) | ||
: ADVectorKernel(parameters), | ||
_grad_pressure(adCoupledGradient("pressure")) | ||
{ | ||
} | ||
|
||
ADReal | ||
ADStokesPressure::computeQpResidual() | ||
{ | ||
return _test[_i][_qp] * _grad_pressure[_qp]; | ||
} |
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,35 @@ | ||
//* 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 "ADStokesPressureByParts.h" | ||
|
||
registerMooseObject("DeerApp", ADStokesPressureByParts); | ||
|
||
InputParameters | ||
ADStokesPressureByParts::validParams() | ||
{ | ||
InputParameters params = ADVectorKernel::validParams(); | ||
params.addClassDescription("The pressure part of the velocity kernel for Stokes flow, do not integrate by parts"); | ||
|
||
params.addRequiredCoupledVar("pressure", "The pressure"); | ||
|
||
return params; | ||
} | ||
|
||
ADStokesPressureByParts::ADStokesPressureByParts(const InputParameters & parameters) | ||
: ADVectorKernel(parameters), | ||
_pressure(adCoupledValue("pressure")) | ||
{ | ||
} | ||
|
||
ADReal | ||
ADStokesPressureByParts::computeQpResidual() | ||
{ | ||
return -_grad_test[_i][_qp].tr() * _pressure[_qp]; | ||
} |
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
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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.