|
From: | Zhenghuai Guo |
Subject: | [Getfem-users] How_to_update_im_data_in_each_loop |
Date: | Fri, 10 May 2019 04:21:45 +0000 |
Hi, Konstantinos and Yves and Andriy, I add a im_data “previous_cauthy_1” to the model. Then in each step of a loop from 1 to 10, I would like to update this im_data. The code sample is as below. Could you please teach me how to update values of the im_data? getfem::im_data previous_cauthy_1(mim_1); model.add_im_data("previous_cauthy_1", previous_cauthy_1); getfem::add_nonlinear_term(model, mim_1,"(lambda_1*Trace(Grad_u_1-previous_cauthy_1)*Id(qdim(u_1)) + mu_1*(Grad_u_1+Grad_u_1'-previous_cauthy_1-previous_cauthy_1')):Grad_Test_u_1" ); for i = 1 to 10: { getfem::standard_solve(model, iter, solver_name, ls); update im_data "previous_cauthy_1", for the next loop step } Thank you very much Regards Zhenghuai Guo |
[Prev in Thread] | Current Thread | [Next in Thread] |