Skip to content

Commit

Permalink
Add FFT problem class (idaholab#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Jan 20, 2020
1 parent 67a82f0 commit e5f9480
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
25 changes: 25 additions & 0 deletions include/problems/FFTProblem.h
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;
};
24 changes: 24 additions & 0 deletions src/problems/FFTProblem.C
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) {}

0 comments on commit e5f9480

Please sign in to comment.