From 1c4bd96e34532ca3495cdf2f5c99038fa9c9142f Mon Sep 17 00:00:00 2001 From: makkemal Date: Mon, 1 Aug 2016 21:58:41 +0100 Subject: [PATCH] FEM: Change thermo mechanical to coupled analysis and add control parameters for convergence --- src/Mod/Fem/FemInputWriterCcx.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Mod/Fem/FemInputWriterCcx.py b/src/Mod/Fem/FemInputWriterCcx.py index 9bee7c420..607495405 100644 --- a/src/Mod/Fem/FemInputWriterCcx.py +++ b/src/Mod/Fem/FemInputWriterCcx.py @@ -365,6 +365,9 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter): elif self.solver_obj.GeometricalNonlinearity == "nonlinear" and self.analysis_type == 'frequency': print('Analysis type frequency and geometrical nonlinear analyis are not allowed together, linear is used instead!') f.write(static_frequency_step + '\n') + f.write('*CONTROLS,PARAMETERS=TIME INCREMENTATION\n') + f.write('4,8,9,200,10,400,,200,\n') + f.write('0.25,0.5,0.75,0.85,,,1.5,\n') f.write('*STATIC') if self.solver_obj.MatrixSolverType == "default": pass @@ -385,6 +388,10 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter): thermomech_step += ', NLGEOM' thermomech_step += ', INC=' + str(self.solver_obj.IterationsMaximum) f.write(thermomech_step + '\n') + f.write(step) + f.write('*CONTROLS,PARAMETERS=TIME INCREMENTATION\n') + f.write('4,8,9,200,10,400,,200,\n') + f.write('0.25,0.5,0.75,0.85,,,1.5,\n') def write_constraints_fixed(self, f): f.write('\n***********************************************************\n') @@ -562,7 +569,7 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter): def write_analysis_thermomech(self, f): f.write('\n***********************************************************\n') - f.write('** Un-Coupled temperature displacement analysis\n') + f.write('** Coupled temperature displacement analysis\n') f.write('** written by {} function\n'.format(sys._getframe().f_code.co_name)) thermomech_analysis = '*COUPLED TEMPERATURE-DISPLACEMENT' if self.solver_obj.MatrixSolverType == "default":