-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
316 additions
and
414 deletions.
There are no files selected for viewing
16 changes: 8 additions & 8 deletions
16
modules/heat_conduction/include/bcs/GaussianWeldEnergyFluxBC.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,37 @@ | ||
/****************************************************************************/ | ||
/* DO NOT MODIFY THIS HEADER */ | ||
/* */ | ||
/* MALAMUTE: MOOSE Application Library for Advanced Manufacturing UTilitiEs */ | ||
/* */ | ||
/* Copyright 2021 - 2023, Battelle Energy Alliance, LLC */ | ||
/* ALL RIGHTS RESERVED */ | ||
/****************************************************************************/ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#include "DisplaceBoundaryBC.h" | ||
|
||
registerMooseObject("MalamuteApp", DisplaceBoundaryBC); | ||
registerMooseObject("NavierStokesApp", DisplaceBoundaryBC); | ||
|
||
InputParameters | ||
DisplaceBoundaryBC::validParams() | ||
{ | ||
InputParameters params = ADNodalBC::validParams(); | ||
params.addClassDescription("For displacing a boundary"); | ||
params.addRequiredCoupledVar("velocity", "The velocity at which to displace"); | ||
params.addRequiredParam<unsigned short>( | ||
"component", "What component of velocity/displacement this object is acting on."); | ||
return params; | ||
} | ||
|
||
DisplaceBoundaryBC::DisplaceBoundaryBC(const InputParameters & parameters) | ||
: ADNodalBC(parameters), | ||
_velocity(adCoupledNodalValue<Real>("velocity")), | ||
_u_old(_var.nodalValueOld()) | ||
_velocity(adCoupledNodalValue<RealVectorValue>("velocity")), | ||
_u_old(_var.nodalValueOld()), | ||
_component(getParam<unsigned short>("component")) | ||
{ | ||
} | ||
|
||
ADReal | ||
DisplaceBoundaryBC::computeQpResidual() | ||
{ | ||
return _u - (_u_old + this->_dt * _velocity); | ||
return _u - (_u_old + this->_dt * _velocity(_component)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.