Skip to content

Commit

Permalink
Fix arfc#183. Fix arfc#265.
Browse files Browse the repository at this point in the history
  • Loading branch information
smpark7 committed May 10, 2024
1 parent 073ac80 commit 3ff8dba
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 37 deletions.
14 changes: 13 additions & 1 deletion include/actions/PrecursorAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ class PrecursorAction : public VariableNotAMooseObjectAction
*/
void addTimeDerivative(const std::string & var_name);

/**
* Adds appropriate conservative advection kernel
*
* @param var_name The name of the variable the kernel acts on
*/
void addAdvection(const std::string & var_name);

/**
* Adds DGAdvection kernel
*
Expand All @@ -72,6 +79,11 @@ class PrecursorAction : public VariableNotAMooseObjectAction
*/
void addInflowBC(const std::string & var_name);

/**
* Adds a PostprocessorPenaltyDirichletBC to stabilize precursor conc at inlet
*/
void addPenaltyBC(const std::string & var_name);

/**
* Adds random initial conditions for Jacobian testing
*
Expand Down Expand Up @@ -131,5 +143,5 @@ class PrecursorAction : public VariableNotAMooseObjectAction
bool _is_loopapp;

/// velocity type
MooseEnum _vel_type;
MooseEnum _velocity_type;
};
21 changes: 21 additions & 0 deletions include/postprocessors/SideFunctionWeightedIntegralPostprocessor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#pragma once

#include "SideIntegralVariablePostprocessor.h"

/**
* This postprocessor computes the weighted integral of a
* variable along a boundary, weighted by the user-provided function.
*/
class SideFunctionWeightedIntegralPostprocessor : public SideIntegralVariablePostprocessor
{
public:
SideFunctionWeightedIntegralPostprocessor(const InputParameters & parameters);

static InputParameters validParams();

protected:
virtual Real computeQpIntegral() override;

// Weight function
const Function & _weight_func;
};
Loading

0 comments on commit 3ff8dba

Please sign in to comment.