Skip to content

Commit

Permalink
Merge pull request #13016 from snschune/remove_NSSpecificVolumeAux_13015
Browse files Browse the repository at this point in the history
Remove NSSpecificVolumeAux
  • Loading branch information
permcody committed Mar 12, 2019
2 parents 913f3c7 + 2952093 commit 355ddee
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 95 deletions.

This file was deleted.

Expand Up @@ -60,7 +60,7 @@ class AddNavierStokesKernelsAction : public NSAction
void addNSEnthalpyAux(); void addNSEnthalpyAux();
void addNSMachAux(); void addNSMachAux();
void addNSInternalEnergyAux(); void addNSInternalEnergyAux();
void addNSSpecificVolumeAux(); void addSpecificVolumeComputation();


// Name of the FluidProperties object to pass on to Kernels // Name of the FluidProperties object to pass on to Kernels
UserObjectName _fp_name; UserObjectName _fp_name;
Expand Down
37 changes: 0 additions & 37 deletions modules/navier_stokes/include/auxkernels/NSSpecificVolumeAux.h

This file was deleted.

14 changes: 9 additions & 5 deletions modules/navier_stokes/src/actions/AddNavierStokesKernelsAction.C
Expand Up @@ -69,7 +69,7 @@ AddNavierStokesKernelsAction::act()
addNSEnthalpyAux(); addNSEnthalpyAux();
addNSMachAux(); addNSMachAux();
addNSInternalEnergyAux(); addNSInternalEnergyAux();
addNSSpecificVolumeAux(); addSpecificVolumeComputation();
for (unsigned int component = 0; component < _dim; ++component) for (unsigned int component = 0; component < _dim; ++component)
addNSVelocityAux(component); addNSVelocityAux(component);
} }
Expand Down Expand Up @@ -125,15 +125,19 @@ AddNavierStokesKernelsAction::addNSSUPGEnergy()
} }


void void
AddNavierStokesKernelsAction::addNSSpecificVolumeAux() AddNavierStokesKernelsAction::addSpecificVolumeComputation()
{ {
const std::string kernel_type = "NSSpecificVolumeAux"; const std::string kernel_type = "ParsedAux";


InputParameters params = _factory.getValidParams(kernel_type); InputParameters params = _factory.getValidParams(kernel_type);
params.set<AuxVariableName>("variable") = NS::specific_volume; params.set<AuxVariableName>("variable") = NS::specific_volume;


// coupled variables // arguments
params.set<CoupledName>(NS::density) = {NS::density}; params.set<CoupledName>("args") = {NS::density};

// expression
std::string function = "if(" + NS::density + " = 0, 1e10, 1 / " + NS::density + ")";
params.set<std::string>("function") = function;


_problem->addAuxKernel(kernel_type, "specific_volume_auxkernel", params); _problem->addAuxKernel(kernel_type, "specific_volume_auxkernel", params);
} }
Expand Down
45 changes: 0 additions & 45 deletions modules/navier_stokes/src/auxkernels/NSSpecificVolumeAux.C

This file was deleted.

0 comments on commit 355ddee

Please sign in to comment.