### latest syntax for F.subs({0.0:gamma_n})

86

views

0

Hi there,

I am trying an old code on nonlinear elasticity which uses the syntax

In this code gamma_n is calculated through a time stepping loop so that gamma_n = 0.5*sin(2*t_n/10*float(pi)) , where t_n is incremented through the loop so that gamma_n first increases and then decreases.

With this syntax I am getting error : AttributeError: 'Form' object has no attribute 'subs'

Thanks

I am trying an old code on nonlinear elasticity which uses the syntax

**F.subs({0.0:gamma_n})**. F is the deformation gradient i.e. F = I+grad(u)In this code gamma_n is calculated through a time stepping loop so that gamma_n = 0.5*sin(2*t_n/10*float(pi)) , where t_n is incremented through the loop so that gamma_n first increases and then decreases.

**Can any one from the community very kindly suggest latest syntax for F.subs({0.0:gamma_n}) ?**With this syntax I am getting error : AttributeError: 'Form' object has no attribute 'subs'

Thanks

Community: FEniCS Project

Please login to add an answer/comment or follow this question.

for latest FEniCS examples, if there are other cases of substituting a term in a form. He is himself not in touch with fenics and its latest syntax.Can you suggest something or may be some lead which I may follow to reach my goal .. which is to substitute gamma in the form F.

Can I define (manually) another form and may be use the other one to compute S_n ?

Thanks.