Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thermally coupled Constitutive Laws #9053

Merged
merged 157 commits into from
Aug 31, 2023
Merged
Changes from 4 commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
a5b0b0b
minor
AlejandroCornejo Aug 12, 2021
4e8a4ef
clear print
AlejandroCornejo Aug 12, 2021
ce31fdd
adding convective correctiion
AlejandroCornejo Aug 13, 2021
7a350b5
Update applications/ConvectionDiffusionApplication/python_scripts/cou…
loumalouomega Aug 16, 2021
c2a4de9
print leftover
AlejandroCornejo Aug 16, 2021
3edea79
using variable_utils for convective velocity
AlejandroCornejo Aug 16, 2021
8d801f1
adding generic virtual method in base solid CL in SMA
AlejandroCornejo Aug 16, 2021
41ebb4e
VariableUtils
loumalouomega Aug 16, 2021
adbe4e9
Merge branch 'thermal-solver-mechanical-coupling' of https://github.c…
AlejandroCornejo Aug 16, 2021
6e8f8b6
Tabs
loumalouomega Aug 16, 2021
cadc48c
merge
AlejandroCornejo Aug 16, 2021
0c7690d
accepting lowercase
AlejandroCornejo Aug 16, 2021
463faaf
elastic 3d law modified
AlejandroCornejo Aug 16, 2021
3dd0717
unused mat_props
AlejandroCornejo Aug 16, 2021
eae02ea
changinh plane strain
AlejandroCornejo Aug 16, 2021
ed081e9
clear spaces
AlejandroCornejo Aug 16, 2021
05ec7be
plane stress
AlejandroCornejo Aug 16, 2021
8653189
axysimmetric
AlejandroCornejo Aug 16, 2021
778dee0
adding table interpolation in advanced constitutive laws utilities
AlejandroCornejo Aug 16, 2021
76e06e2
adding comment in method
AlejandroCornejo Aug 16, 2021
b71f9ac
inverting order -> Reference TEMPERATURE
AlejandroCornejo Aug 16, 2021
b1568d8
more methods to the utils
AlejandroCornejo Aug 16, 2021
c1c4ccd
adding first thermal elastic 3d law
AlejandroCornejo Aug 16, 2021
7371461
adding calculation methods
AlejandroCornejo Aug 16, 2021
6cf902b
registering thermal law
AlejandroCornejo Aug 16, 2021
283b655
minor strain type
AlejandroCornejo Aug 16, 2021
3ea0f42
final details of the first thermal law
AlejandroCornejo Aug 16, 2021
2110294
better looking logger
AlejandroCornejo Aug 16, 2021
31bc1c4
clang issue
AlejandroCornejo Aug 16, 2021
2f0ba7c
registering plane strain
AlejandroCornejo Aug 16, 2021
ace3bf3
minor original plane strain space
AlejandroCornejo Aug 16, 2021
905e976
adding plane strain thermal
AlejandroCornejo Aug 16, 2021
a4b47fc
consistent ordering
AlejandroCornejo Aug 16, 2021
18ef872
correct ordering of Solve in the Thermal and Structural
AlejandroCornejo Aug 16, 2021
1e4c8ec
Update applications/ConstitutiveLawsApplication/custom_utilities/adva…
AlejandroCornejo Aug 16, 2021
d778296
Update applications/ConstitutiveLawsApplication/custom_utilities/adva…
AlejandroCornejo Aug 16, 2021
08100ea
adding csome calculate values
AlejandroCornejo Aug 17, 2021
5cbee8a
adding custom utilities to python in CLApp
AlejandroCornejo Aug 17, 2021
e24773e
adding blanck utility
AlejandroCornejo Aug 17, 2021
f0450f4
imprving the solver
AlejandroCornejo Aug 17, 2021
29a84ab
not required in the end the python process
AlejandroCornejo Aug 17, 2021
5d2c25f
solving REFERENCE_TEMP in CLs
AlejandroCornejo Aug 17, 2021
747ce40
adding empty utilities container for the future
AlejandroCornejo Aug 17, 2021
4b79eeb
registering thermal plane zstress
AlejandroCornejo Aug 17, 2021
0cd5425
plane stress thermal cl
AlejandroCornejo Aug 17, 2021
b4c2486
missing overrides
AlejandroCornejo Aug 17, 2021
1bbec1b
avoiding warning
AlejandroCornejo Aug 17, 2021
561ff93
unused import
AlejandroCornejo Aug 17, 2021
e69eafb
Methods are access (not operators)
loumalouomega Aug 18, 2021
c17d339
Minor
loumalouomega Aug 18, 2021
4ff5819
adding c++ test, 2d version
AlejandroCornejo Aug 18, 2021
0bfeabe
unused includes
AlejandroCornejo Aug 18, 2021
6d150eb
adding test with table interpolation
AlejandroCornejo Aug 18, 2021
867739f
adding 3d case thermal with tables interpolation
AlejandroCornejo Aug 18, 2021
41c5a5a
minor for checks
AlejandroCornejo Aug 18, 2021
82bff15
removing virtual from utilities
AlejandroCornejo Aug 19, 2021
daf8aee
adding temperature table possibility for alpha
AlejandroCornejo Aug 23, 2021
0beab1d
Merge branch 'master' into thermal-solver-mechanical-coupling
loumalouomega Aug 30, 2021
3028750
[WIP] Function example
loumalouomega Aug 30, 2021
b5ca197
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Aug 31, 2021
35897b0
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Sep 2, 2021
df42254
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Sep 6, 2021
90931ca
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Sep 17, 2021
e571160
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Oct 1, 2021
a2c1eb8
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Oct 19, 2021
f4d113e
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Nov 9, 2021
66c5d5e
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Nov 21, 2021
f472dbd
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Nov 23, 2021
f4a84f1
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Dec 15, 2021
c812a74
updating Check method
AlejandroCornejo Dec 15, 2021
19267e9
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Dec 28, 2021
aae7b3a
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Jan 14, 2022
2b28c16
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Mar 11, 2022
4bf41b7
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Mar 24, 2022
cf462a0
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo May 4, 2022
5728160
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo May 28, 2022
c70fdc2
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Jun 2, 2022
7af8149
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Aug 1, 2022
3f89009
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Aug 17, 2022
cf4a941
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Sep 16, 2022
47dfb06
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Oct 21, 2022
5ad8caf
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Jan 2, 2023
d53b386
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Jan 19, 2023
04c65dc
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Mar 2, 2023
d1b7d5b
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Mar 9, 2023
6a4ab1e
unused print
AlejandroCornejo Mar 9, 2023
ddd313c
adding removed methods
AlejandroCornejo Mar 9, 2023
5a22749
ne more
AlejandroCornejo Mar 9, 2023
7eea18f
separated in cpp version
AlejandroCornejo Mar 9, 2023
e7c36a0
minor
AlejandroCornejo Mar 9, 2023
23e97fb
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo May 17, 2023
dca539f
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Aug 4, 2023
7bb9197
revert overhead in elastic ones
AlejandroCornejo Aug 4, 2023
86c96c9
no longer used this way
AlejandroCornejo Aug 4, 2023
b7131b0
missing props
AlejandroCornejo Aug 4, 2023
97502fa
exposing E and NU to be able to use accessor dependent props
AlejandroCornejo Aug 4, 2023
b028669
update damage
AlejandroCornejo Aug 4, 2023
2c11d15
exposing properties and moving to utilities the calculation of PK2 st…
AlejandroCornejo Aug 4, 2023
2e9ae9e
updating Thermal elastic 3D
AlejandroCornejo Aug 4, 2023
0c4db4c
minor tab
AlejandroCornejo Aug 4, 2023
b524bf2
adapting plane stress
AlejandroCornejo Aug 4, 2023
ce917af
plane strain ok
AlejandroCornejo Aug 4, 2023
4a8bdba
minor correction in plane strain
AlejandroCornejo Aug 4, 2023
1320fbb
remove unused method and file
AlejandroCornejo Aug 4, 2023
45dcfc0
remove include
AlejandroCornejo Aug 4, 2023
2c99965
movign thermal CL
AlejandroCornejo Aug 4, 2023
eec1c63
more mving
AlejandroCornejo Aug 4, 2023
f663c92
cpp tests updated
AlejandroCornejo Aug 4, 2023
cd23846
corrected path
AlejandroCornejo Aug 4, 2023
2597637
.
AlejandroCornejo Aug 4, 2023
ebcc1c3
comments
AlejandroCornejo Aug 4, 2023
4514fad
trail whitespaces
AlejandroCornejo Aug 4, 2023
9c7d388
better stream
AlejandroCornejo Aug 4, 2023
b7471f0
adding complete test case
AlejandroCornejo Aug 4, 2023
6e49d77
tabs
AlejandroCornejo Aug 4, 2023
bee5ea5
adding test to convection diffusion app
AlejandroCornejo Aug 4, 2023
f3a1267
implementing everything in calculateSolutionStep
AlejandroCornejo Aug 8, 2023
f5cc3ca
using pragma once
AlejandroCornejo Aug 8, 2023
435bc63
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Aug 15, 2023
4176b36
reduce size of mdpa
AlejandroCornejo Aug 15, 2023
9dbb4dd
once
AlejandroCornejo Aug 15, 2023
63ee514
unify namespaces
AlejandroCornejo Aug 15, 2023
56ac970
removing unnecessary method
AlejandroCornejo Aug 15, 2023
30743ee
only dynamic in lowercase
AlejandroCornejo Aug 16, 2023
6839064
moving methods to private and add doxigen
AlejandroCornejo Aug 18, 2023
5cd7892
consistent style
AlejandroCornejo Aug 18, 2023
0cfece5
includes to cpp
AlejandroCornejo Aug 18, 2023
5b80f4a
not typedef anymore
AlejandroCornejo Aug 18, 2023
9b1cdf7
collapsing namespaces
AlejandroCornejo Aug 18, 2023
3e597df
review advanced CL utilities
AlejandroCornejo Aug 18, 2023
33e62ea
avoid repetition int he cpp test
AlejandroCornejo Aug 18, 2023
fbb447c
adding conv in thermal solve
AlejandroCornejo Aug 18, 2023
15edd48
remove print
AlejandroCornejo Aug 18, 2023
447e70c
reduced size mdpa
AlejandroCornejo Aug 18, 2023
b12c201
remove gid and vtk print settings in test
AlejandroCornejo Aug 18, 2023
681a299
adding extra check for C
AlejandroCornejo Aug 18, 2023
8672900
correcting header of utilities and style
AlejandroCornejo Aug 18, 2023
1ef5613
chaging name test directory
AlejandroCornejo Aug 18, 2023
cf6dff0
moving CLs to its approppriate folder
AlejandroCornejo Aug 18, 2023
8eb0498
update directory in json test
AlejandroCornejo Aug 18, 2023
6c73a37
now we run only 5 steps intead of 50
AlejandroCornejo Aug 18, 2023
1df441c
Minoor suggestions
loumalouomega Aug 21, 2023
077db45
Merge branch 'master' into thermal-solver-mechanical-coupling
AlejandroCornejo Aug 22, 2023
d297a21
ading a virtual method to the thermal one 3d
AlejandroCornejo Aug 22, 2023
c091323
adapting plane strain to thermal
AlejandroCornejo Aug 22, 2023
a11482c
moving stuff to utilities and avoid repetition
AlejandroCornejo Aug 22, 2023
60be0dd
with const expr
AlejandroCornejo Aug 22, 2023
8715e8d
corrected
AlejandroCornejo Aug 22, 2023
22e35f3
unused GetValue removed
AlejandroCornejo Aug 22, 2023
232f7ee
iso dam ok
AlejandroCornejo Aug 22, 2023
9484323
h of isodam
AlejandroCornejo Aug 22, 2023
2ee1083
Revert "unused GetValue removed"
AlejandroCornejo Aug 22, 2023
202a613
plane strain ok
AlejandroCornejo Aug 22, 2023
d4debc3
adding dimension to thermal plane strain
AlejandroCornejo Aug 22, 2023
a844ca8
updating plane stress
AlejandroCornejo Aug 22, 2023
a9e23d2
more generality to avoid breaking test in SMApp
AlejandroCornejo Aug 22, 2023
546bd51
moving the test to a subfolder to be consistent
AlejandroCornejo Aug 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
philbucher marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def __init__(self, model, custom_settings):

from KratosMultiphysics.ConvectionDiffusionApplication import python_solvers_wrapper_convection_diffusion
self.thermal_solver = python_solvers_wrapper_convection_diffusion.CreateSolverByParameters(self.model,self.settings["thermal_solver_settings"],"OpenMP")
self.is_dynamic = self.settings["structural_solver_settings"]["solver_type"].GetString() == "Dynamic"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lowercase is also valid input (and the preferred one)


def AddVariables(self):
# Import the structural and thermal solver variables. Then merge them to have them in both structural and thermal solvers.
Expand Down Expand Up @@ -149,11 +150,23 @@ def Predict(self):
self.thermal_solver.Predict()

def SolveSolutionStep(self):
fluid_is_converged = self.structural_solver.SolveSolutionStep()
KratosMultiphysics.Logger.PrintInfo("\n" + "\t" +"Solving Structural part..." + "\n")
solid_is_converged = self.structural_solver.SolveSolutionStep()

self.RemoveConvectiveVelocity()

KratosMultiphysics.Logger.PrintInfo("\n" + "\t" + "Solving Thermal part..." + "\n")
thermal_is_converged = self.thermal_solver.SolveSolutionStep()

return (fluid_is_converged and thermal_is_converged)
KratosMultiphysics.Logger.PrintInfo("+--------------------------------------------------------------+")

return (solid_is_converged and thermal_is_converged)

def FinalizeSolutionStep(self):
self.structural_solver.FinalizeSolutionStep()
self.thermal_solver.FinalizeSolutionStep()

def RemoveConvectiveVelocity(self):
if self.is_dynamic:
for node in self.thermal_solver.GetComputingModelPart().Nodes:
loumalouomega marked this conversation as resolved.
Show resolved Hide resolved
node.SetSolutionStepValue(KratosMultiphysics.MESH_VELOCITY, node.GetSolutionStepValue(KratosMultiphysics.VELOCITY))
loumalouomega marked this conversation as resolved.
Show resolved Hide resolved