Skip to content
Discussion options

You must be logged in to vote

@GiudGiud

I think it kinda almost works now, this is the updated code:

#include "AdvectiveFluxAuxBE.h"
#include "Assembly.h"

registerMooseObject("MOOSE_BEHApp", AdvectiveFluxAuxBE);

InputParameters
AdvectiveFluxAuxBE::validParams()
{
  InputParameters params = AuxKernel::validParams();
  MooseEnum component("x y z normal");
  params.addClassDescription("Compute components of flux vector for advection problems "
                             "$(\\vec{J} = \\vec{v} \\cdot \\vec{n})$.");
  params.addCoupledVar("v", "The x component of velocity");
  params.addParam<MooseEnum>("component", component, "The desired component of flux."); // Added this line
  return params;
}

AdvectiveFluxAuxBE:…

Replies: 1 comment 17 replies

Comment options

You must be logged in to vote
17 replies
@GiudGiud
Comment options

@Traiwit
Comment options

@GiudGiud
Comment options

@Traiwit
Comment options

Answer selected by Traiwit
@GiudGiud
Comment options

@Traiwit
Comment options

@GiudGiud
Comment options

@Traiwit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants