Skip to content
Permalink
Browse files

Merge pull request #13016 from snschune/remove_NSSpecificVolumeAux_13015

Remove NSSpecificVolumeAux
  • Loading branch information...
permcody committed Mar 12, 2019
2 parents 913f3c7 + 2952093 commit 355ddee207a12aa2f7e515f91c7d5f508ccaeb3f

This file was deleted.

Oops, something went wrong.
@@ -60,7 +60,7 @@ class AddNavierStokesKernelsAction : public NSAction
void addNSEnthalpyAux();
void addNSMachAux();
void addNSInternalEnergyAux();
void addNSSpecificVolumeAux();
void addSpecificVolumeComputation();

// Name of the FluidProperties object to pass on to Kernels
UserObjectName _fp_name;

This file was deleted.

Oops, something went wrong.
@@ -69,7 +69,7 @@ AddNavierStokesKernelsAction::act()
addNSEnthalpyAux();
addNSMachAux();
addNSInternalEnergyAux();
addNSSpecificVolumeAux();
addSpecificVolumeComputation();
for (unsigned int component = 0; component < _dim; ++component)
addNSVelocityAux(component);
}
@@ -125,15 +125,19 @@ AddNavierStokesKernelsAction::addNSSUPGEnergy()
}

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

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

// coupled variables
params.set<CoupledName>(NS::density) = {NS::density};
// arguments
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);
}

This file was deleted.

Oops, something went wrong.

0 comments on commit 355ddee

Please sign in to comment.
You can’t perform that action at this time.