How to use adapt


237
views
0
9 months ago by
This is a follow-up to this question

https://www.allanswered.com/post/bnvr/time-dependent-pde-and-mesh-adaptation/

I am trying to learn how to use "adapt" for a time-dependent problem. So I modified one of my existing BVP codes to this

https://gist.github.com/cpraveen/8e8b6a8bffe3c74aca29a16852e1d9c9

This code does not run and complains at line 94. I have no clue how to fix this or even if my approach is correct, since there are no examples available in the documentation.
Community: FEniCS Project
I have fixed a mistake in adapting bc. See same gist as above. Now it fails at  solve after first adaptation
Solving linear variational problem.
Number of cells increased from 200 to 283 (41.5% increase).
Interpolate from parent to child
Traceback (most recent call last):
  File "demo2.py", line 60, in <module>
    solve(a == L, u, bc)
  File "/usr/local/lib/python2.7/dist-packages/dolfin/fem/solving.py", line 310, in solve
    return cpp.la_solve(*args)
  File "/usr/local/lib/python2.7/dist-packages/dolfin/cpp/la.py", line 4898, in la_solve
    return _la.la_solve(*args)
TypeError: in method 'la_solve', argument 1 of type 'dolfin::GenericLinearOperator const &'​
written 9 months ago by Praveen C  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »