forked from idaholab/magpie
-
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.
Add FFT problem class (idaholab#401)
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 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,25 @@ | ||
/**********************************************************************/ | ||
/* DO NOT MODIFY THIS HEADER */ | ||
/* MAGPIE - Mesoscale Atomistic Glue Program for Integrated Execution */ | ||
/* */ | ||
/* Copyright 2017 Battelle Energy Alliance, LLC */ | ||
/* ALL RIGHTS RESERVED */ | ||
/**********************************************************************/ | ||
|
||
#pragma once | ||
|
||
#include "FEProblem.h" | ||
|
||
/** | ||
* Enhanced FEProblem that supports FFT buffers as variables | ||
*/ | ||
class FFTProblem : public FEProblem | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
FFTProblem(const InputParameters & parameters); | ||
|
||
protected: | ||
std::vector<MooseVariable *> _fft_vars; | ||
}; |
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,24 @@ | ||
/**********************************************************************/ | ||
/* DO NOT MODIFY THIS HEADER */ | ||
/* MAGPIE - Mesoscale Atomistic Glue Program for Integrated Execution */ | ||
/* */ | ||
/* Copyright 2017 Battelle Energy Alliance, LLC */ | ||
/* ALL RIGHTS RESERVED */ | ||
/**********************************************************************/ | ||
|
||
#include "FFTProblem.h" | ||
|
||
registerMooseObject("MagpieApp", FFTProblem); | ||
|
||
defineLegacyParams(FFTProblem); | ||
|
||
InputParameters | ||
FFTProblem::validParams() | ||
{ | ||
InputParameters params = FFTProblem::validParams(); | ||
params.addClassDescription("Enhanced FEProblem that supports FFT buffers as variables."); | ||
|
||
return params; | ||
} | ||
|
||
FFTProblem::FFTProblem(const InputParameters & parameters) : FEProblem(parameters) {} |