Skip to content

Commit

Permalink
Merge pull request #25730 from GiudGiud/PR_rename
Browse files Browse the repository at this point in the history
Rename outdated terminology
  • Loading branch information
GiudGiud authored Oct 13, 2023
2 parents 6760c9d + d1ead3b commit 735b280
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ class HeatTransferFromHeatStructure1Phase : public HeatTransferFromTemperature1P
virtual void check() const override;

/**
* Gets the "master side" (heat structure) boundary name for this connection
* Gets the heat structure boundary name for this connection
*
* @return The boundary name of the master side
* @return The boundary name of the heat structure side
*/
const BoundaryName & getMasterSideName() const;
const BoundaryName & getHeatStructureSideName() const;
/**
* Gets the "slave side" (flow channel) nodeset name for this connection
* Gets the flow channel nodeset name for this connection
*
* @return The nodeset name for the slave side
* @return The nodeset name for the channel side
*/
const BoundaryName & getSlaveSideName() const;
const BoundaryName & getChannelSideName() const;

/// Mesh alignment
MeshAlignment _mesh_alignment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ HeatTransferFromHeatStructure1Phase::addMooseObjects()
{
const std::string class_name = "ADHeatFlux3EqnBC";
InputParameters params = _factory.getValidParams(class_name);
params.set<std::vector<BoundaryName>>("boundary") = {getMasterSideName()};
params.set<std::vector<BoundaryName>>("boundary") = {getHeatStructureSideName()};
params.set<NonlinearVariableName>("variable") = HeatConductionModel::TEMPERATURE;
params.set<UserObjectName>("q_uo") = heat_flux_uo_name;
params.set<Real>("P_hs_unit") = hs.getUnitPerimeter(_hs_side);
Expand All @@ -179,27 +179,27 @@ HeatTransferFromHeatStructure1Phase::addMooseObjects()
getTHMProblem().addMaterial(class_name, genName(name(), "T_wall_transfer_mat"), params);
}

// Transfer the temperature of the solid onto the flow channel as aux varaible for visualization
// Transfer the temperature of the solid onto the flow channel as aux variable for visualization
{
std::string class_name = "VariableValueTransferAux";
InputParameters params = _factory.getValidParams(class_name);
params.set<AuxVariableName>("variable") = _T_wall_name;
params.set<std::vector<BoundaryName>>("boundary") = {getSlaveSideName()};
params.set<BoundaryName>("paired_boundary") = getMasterSideName();
params.set<std::vector<BoundaryName>>("boundary") = {getChannelSideName()};
params.set<BoundaryName>("paired_boundary") = getHeatStructureSideName();
params.set<std::vector<VariableName>>("paired_variable") =
std::vector<VariableName>(1, HeatConductionModel::TEMPERATURE);
getTHMProblem().addAuxKernel(class_name, genName(name(), "T_wall_transfer"), params);
}
}

const BoundaryName &
HeatTransferFromHeatStructure1Phase::getMasterSideName() const
HeatTransferFromHeatStructure1Phase::getHeatStructureSideName() const
{
return getHSBoundaryName(this);
}

const BoundaryName &
HeatTransferFromHeatStructure1Phase::getSlaveSideName() const
HeatTransferFromHeatStructure1Phase::getChannelSideName() const
{
const FlowChannel1Phase & flow_channel =
getComponentByName<FlowChannel1Phase>(_flow_channel_name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ADHeatRateConvection1Phase::validParams()
params.addParam<MaterialPropertyName>(
"T_wall", FlowModelSinglePhase::TEMPERATURE_WALL, "Wall temperature");
params.addParam<MaterialPropertyName>(
"T", FlowModelSinglePhase::TEMPERATURE, "Temperature of the fluid on the slave side");
"T", FlowModelSinglePhase::TEMPERATURE, "Temperature of the fluid on the channel side");
params.addParam<MaterialPropertyName>(
"Hw", FlowModelSinglePhase::HEAT_TRANSFER_COEFFICIENT_WALL, "Wall heat transfer coefficient");
params.addRequiredCoupledVar("P_hf", "heat flux perimeter");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ HeatRateConvection1Phase::validParams()
params.addParam<MaterialPropertyName>(
"T_wall", FlowModelSinglePhase::TEMPERATURE_WALL, "Wall temperature");
params.addParam<MaterialPropertyName>(
"T", FlowModelSinglePhase::TEMPERATURE, "Temperature of the fluid on the slave side");
"T", FlowModelSinglePhase::TEMPERATURE, "Temperature of the fluid on the channel side");
params.addParam<MaterialPropertyName>(
"Hw", FlowModelSinglePhase::HEAT_TRANSFER_COEFFICIENT_WALL, "Wall heat transfer coefficient");
params.addRequiredCoupledVar("P_hf", "heat flux perimeter");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This tests a form loss transfer using the MultiApp system. A dummy heat
# conduction problem is solved, then the form loss evaluated and transferred
# to the slave side of the solve, slave side solves and master continues solving
# to the child app side of the solve, then the child app solves and then the
# parent continues solving

[Mesh]
type = GeneratedMesh
Expand Down Expand Up @@ -78,18 +79,18 @@
[]

[MultiApps]
[slave]
[child]
type = TransientMultiApp
app_type = ThermalHydraulicsApp
input_files = phy.form_loss_1phase.slave.i
input_files = phy.form_loss_1phase.child.i
execute_on = 'timestep_end'
[]
[]

[Transfers]
[K_to_s]
type = MultiAppNearestNodeTransfer
to_multi_app = slave
to_multi_app = child
source_variable = K_prime
variable = K_prime
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[phy:form_loss_1phase]
type = 'Exodiff'
input = 'phy.form_loss_1phase.parent.i'
exodiff = 'phy.form_loss_1phase.parent_out_slave0.e'
exodiff = 'phy.form_loss_1phase.parent_out_child0.e'
rel_err = 1e-10
recover = false
[]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This tests a temperature transfer using the MultiApp system. Simple heat
# conduction problem is solved, then the temperature is picked up by the slave
# side of the solve, slave side solves and transfers its variables back to the
# conduction problem is solved, then the temperature is picked up by the child
# side of the solve, child side solves and transfers its variables back to the
# master

[Mesh]
Expand Down Expand Up @@ -64,13 +64,13 @@
[thm]
type = TransientMultiApp
app_type = ThermalHydraulicsApp
input_files = phy.T_wall_transfer_3eqn.slave.i
input_files = phy.T_wall_transfer_3eqn.child.i
execute_on = TIMESTEP_END
[]
[]

[Transfers]
[T_to_slave]
[T_to_child]
type = MultiAppNearestNodeTransfer
to_multi_app = thm
source_variable = T
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This tests a temperature transfer using the MultiApp system. Simple heat
# conduction problem is solved, then the layered average is computed and
# transferred into the slave side of the solve
# transferred into the child side of the solve

[Mesh]
type = GeneratedMesh
Expand Down Expand Up @@ -73,13 +73,13 @@
[thm]
type = TransientMultiApp
app_type = ThermalHydraulicsApp
input_files = phy.T_wall_transfer_elem_3eqn.slave.i
input_files = phy.T_wall_transfer_elem_3eqn.child.i
execute_on = TIMESTEP_END
[]
[]

[Transfers]
[T_to_slave]
[T_to_child]
type = MultiAppUserObjectTransfer
to_multi_app = thm
user_object = T_avg_uo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This tests a heat flux transfer using the MultiApp system. Simple heat
# conduction problem is solved, then the heat flux is picked up by the slave
# side of the solve, slave side solves and transfers its variables back to the
# conduction problem is solved, then the heat flux is picked up by the child
# side of the solve, child side solves and transfers its variables back to the
# master

[Mesh]
Expand Down Expand Up @@ -79,7 +79,7 @@
[thm]
type = TransientMultiApp
app_type = ThermalHydraulicsApp
input_files = phy.q_wall_transfer_3eqn.slave.i
input_files = phy.q_wall_transfer_3eqn.child.i
execute_on = 'initial timestep_end'
[]
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
type = Exodiff
input = 'phy.T_wall_transfer_3eqn.parent.i'
exodiff = 'phy.T_wall_transfer_ext_3eqn.e phy.T_wall_transfer_ext_3eqn_thm0_out.e'
cli_args = "Outputs/file_base=phy.T_wall_transfer_ext_3eqn Transfers/T_to_slave/variable=T_ext thm:AuxVariables/T_ext thm:AuxVariables/T_ext/initial_condition=300 thm:Components/hxconn/T_ext=T_ext thm:Outputs/out/show='T_ext'"
cli_args = "Outputs/file_base=phy.T_wall_transfer_ext_3eqn Transfers/T_to_child/variable=T_ext "
"thm:AuxVariables/T_ext thm:AuxVariables/T_ext/initial_condition=300 "
"thm:Components/hxconn/T_ext=T_ext thm:Outputs/out/show='T_ext'"
[]

[phy:T_wall_transfer_elem_3eqn]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Simple heat conduction problem with heat source is solved,
# to obtain an analytical solution:
# T(x,t) = 300 + 20t(x-1)^2
# The temperature is picked up by the slave
# The temperature is picked up by the child
# side of the solve, to use as ambiant temperature in a convective BC.
htc = 100

Expand Down Expand Up @@ -59,8 +59,8 @@ htc = 100

[source]
type = BodyForce
function = 'source_term'
variable = T
function = 'source_term'
variable = T
[]
[]

Expand Down Expand Up @@ -97,13 +97,13 @@ htc = 100
[]

[Transfers]
[T_to_slave]
[T_to_child]
type = MultiAppNearestNodeTransfer
to_multi_app = thm
source_variable = T
variable = T_ext
[]
[htc_to_slave]
[htc_to_child]
type = MultiAppNearestNodeTransfer
to_multi_app = thm
source_variable = htc_ext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This tests a transfer of temperature values computed by master app and used by a slave app
# This tests a transfer of temperature values computed by master app and used by a child app
# as a heat structure boundary condition

[Mesh]
Expand Down Expand Up @@ -72,7 +72,7 @@
[thm]
type = TransientMultiApp
app_type = ThermalHydraulicsApp
input_files = phy.slave.i
input_files = phy.child.i
execute_on = 'initial timestep_end'
[]
[]
Expand Down

0 comments on commit 735b280

Please sign in to comment.