# Access function in time dependent XDMFFile

**URL:** <https://fenicsproject.discourse.group/t/access-function-in-time-dependent-xdmffile/359>\
**Category:** Uncategorized\
**Created:** [March 12, 2019, 12:18pm UTC](https://fenicsproject.discourse.group/t/access-function-in-time-dependent-xdmffile/359 "2019-03-12T12:18:23Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [October 25, 2019, 8:35am UTC](https://fenicsproject.discourse.group/t/access-function-in-time-dependent-xdmffile/359/14 "2019-10-25T08:35:10Z")

</div>

Since this is a mixed space, I would use `FunctionAssigner` to assign the the velocity to the variable, see:  
[https://bitbucket.org/fenics-project/dolfin/raw/ec57db53f2b13f1768214829e8b4f80fc32205cf/python/demo/undocumented/sub-function-assignment/demo\_sub-function-assignment.py](https://bitbucket.org/fenics-project/dolfin/raw/ec57db53f2b13f1768214829e8b4f80fc32205cf/python/demo/undocumented/sub-function-assignment/demo_sub-function-assignment.py)

---

_[View the full topic](https://fenicsproject.discourse.group/t/access-function-in-time-dependent-xdmffile/359)._
