# The elasticity problem with "varf"

**URL:** https://community.freefem.org/t/the-elasticity-problem-with-varf/2057
**Category:** General Discussion
**Created:** [October 12, 2022, 9:03am UTC](https://community.freefem.org/t/the-elasticity-problem-with-varf/2057 "2022-10-12T09:03:18Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![SHENG](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@SHENG](https://community.freefem.org/u/SHENG)
#### Post date: [October 18, 2022, 9:14am UTC](https://community.freefem.org/t/the-elasticity-problem-with-varf/2057/8 "2022-10-18T09:14:10Z")

</div>

Dear Professor,

I am so sorry for my frequent problems.  
According to your previous advice, I have switched my code to a single varf. However, the results from the code with a single varf are still wrong.  
I find that the results between the two codes with solve and single are same when the time is 1, while the results of iteration over time are wrong. Therefore, I think that the codes of the variational form are correctly written. I guess that the code about iteration may be wrong. However, the code about iteration is totally same between the codes with solve and varf. I suspect there is an intrinsic error in my code with varf, which I do not understand. Therefore, please give me some more advice.  
The two codes with “solve” and “varf” are attached to this post, respectively.  
[Sequential\_2D\_Solve.edp](https://community.freefem.org/uploads/short-url/bG1I5x7zo7f6tffM0s7svUbiy2j.edp) (2.2 KB)  
[Sequential\_2D\_Varf1.edp](https://community.freefem.org/uploads/short-url/yUCwTgxcmFv9v0HeFy4PCjolzen.edp) (2.2 KB)

Best,  
Liu

---

_[View the full topic](https://community.freefem.org/t/the-elasticity-problem-with-varf/2057)._
