Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
giraffe
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nek5000
giraffe
Commits
6129f614
Commit
6129f614
authored
Apr 24, 2018
by
Kevin Dugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restoring coupled grad aux
parent
37f06151
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
105 additions
and
0 deletions
+105
-0
include/auxkernels/CoupledGradAux.h
include/auxkernels/CoupledGradAux.h
+55
-0
src/auxkernels/CoupledGradAux.C
src/auxkernels/CoupledGradAux.C
+45
-0
src/base/GiraffeApp.C
src/base/GiraffeApp.C
+5
-0
No files found.
include/auxkernels/CoupledGradAux.h
0 → 100644
View file @
6129f614
/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC */
/* ALL RIGHTS RESERVED */
/* */
/* Prepared by Battelle Energy Alliance, LLC */
/* Under Contract No. DE-AC07-05ID14517 */
/* With the U. S. Department of Energy */
/* */
/* See COPYRIGHT for full restrictions */
/****************************************************************/
#ifndef COUPLEDGRADAUX_H
#define COUPLEDGRADAUX_H
#include "AuxKernel.h"
//Forward Declarations
class
CoupledGradAux
;
template
<
>
InputParameters
validParams
<
CoupledGradAux
>
();
/**
* Coupled auxiliary gradient
*/
class
CoupledGradAux
:
public
AuxKernel
{
public:
/**
* Factory constructor, takes parameters so that all derived classes can be built using the same
* constructor.
*/
CoupledGradAux
(
const
InputParameters
&
parameters
);
virtual
~
CoupledGradAux
();
protected:
virtual
Real
computeValue
();
/// Gradient being set by this kernel
RealGradient
_grad
;
/// The number of coupled variable
int
_coupled
;
/// The value of coupled gradient
const
VariableGradient
&
_coupled_grad
;
/// Thermal conductivity (diffusion coefficient)
const
MaterialProperty
<
Real
>
&
_diffusion_coefficient
;
};
#endif //COUPLEDGRADAUX_H
src/auxkernels/CoupledGradAux.C
0 → 100644
View file @
6129f614
/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC */
/* ALL RIGHTS RESERVED */
/* */
/* Prepared by Battelle Energy Alliance, LLC */
/* Under Contract No. DE-AC07-05ID14517 */
/* With the U. S. Department of Energy */
/* */
/* See COPYRIGHT for full restrictions */
/****************************************************************/
#include "CoupledGradAux.h"
template
<>
InputParameters
validParams
<
CoupledGradAux
>
()
{
InputParameters
params
=
validParams
<
AuxKernel
>
();
params
.
addRequiredCoupledVar
(
"coupled"
,
"Coupled gradient for calculation"
);
params
.
addParam
<
MaterialPropertyName
>
(
"diffusion_coefficient_name"
,
"thermal_conductivity"
,
"Property name of the diffusivity (Default: thermal_conductivity)"
);
return
params
;
}
CoupledGradAux
::
CoupledGradAux
(
const
InputParameters
&
parameters
)
:
AuxKernel
(
parameters
),
_coupled
(
coupled
(
"coupled"
)),
_coupled_grad
(
coupledGradient
(
"coupled"
)),
_diffusion_coefficient
(
getMaterialProperty
<
Real
>
(
"diffusion_coefficient_name"
))
{
}
CoupledGradAux
::~
CoupledGradAux
()
{
}
Real
CoupledGradAux
::
computeValue
()
{
return
_coupled_grad
[
_qp
].
norm
()
*
_diffusion_coefficient
[
_qp
];
}
src/base/GiraffeApp.C
View file @
6129f614
...
...
@@ -19,6 +19,9 @@
#include "NekExecutioner.h"
#include "NekTimeStepper.h"
// AuxKernels
#include "CoupledGradAux.h"
template
<>
InputParameters
validParams
<
GiraffeApp
>
()
...
...
@@ -65,6 +68,8 @@ GiraffeApp::registerObjects(Factory & factory)
registerExecutioner
(
NekExecutioner
);
registerTimeStepper
(
NekTimeStepper
);
registerAuxKernel
(
CoupledGradAux
);
}
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment