From ab55666471541b09f90fcde23644ea2befdea491 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 19 Nov 2021 13:31:52 +0100 Subject: [PATCH] Renamed variables for better GUI --- .../DiffusionEquation_2DSpherical.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/CoreFlows/examples/Python/DiffusionEquation/DiffusionEquation_2DSpherical.py b/CoreFlows/examples/Python/DiffusionEquation/DiffusionEquation_2DSpherical.py index e3227fb..cd47f4b 100644 --- a/CoreFlows/examples/Python/DiffusionEquation/DiffusionEquation_2DSpherical.py +++ b/CoreFlows/examples/Python/DiffusionEquation/DiffusionEquation_2DSpherical.py @@ -26,19 +26,19 @@ def DiffusionEquation_2DSpherical(FECalculation): spaceDim=2 # Mandatory physical values - cp_ur=300# heat capacity - rho_ur=10000# density - lambda_ur=5# conductivity + specific_heat=300# specific heat capacity + density=10000# density + conductivity=5# conductivity - myProblem = solverlab.DiffusionEquation(spaceDim,FECalculation,rho_ur,cp_ur,lambda_ur); + myProblem = solverlab.DiffusionEquation(spaceDim,FECalculation,density,specific_heat,conductivity); - #Optional physical values - fluidTemp=573.;#fluid mean temperature + # Optional physical values (default value is zero) + fluidTemperature=573.;#fluid mean temperature heatTransfertCoeff=1000.;#fluid/solid exchange coefficient - phi=1e5;#heat power ddensity - myProblem.setFluidTemperature(fluidTemp); + constant_heat=1e5;#heat power ddensity + myProblem.setFluidTemperature(fluidTemperature); myProblem.setHeatTransfertCoeff(heatTransfertCoeff); - myProblem.setHeatSource(phi); + myProblem.setHeatSource(constant_heat); #Initial field load time_iteration=0 -- 2.39.2