# How to create the advection matrix

**URL:** <https://fenicsproject.discourse.group/t/how-to-create-the-advection-matrix/16262>\
**Category:** variational formulation\
**Tags:** dolfinx\
**Created:** [November 10, 2024, 11:16pm UTC](https://fenicsproject.discourse.group/t/how-to-create-the-advection-matrix/16262 "2024-11-10T23:16:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 11, 2024, 8:43am UTC](https://fenicsproject.discourse.group/t/how-to-create-the-advection-matrix/16262/4 "2024-11-11T08:43:19Z")

</div>

Isn’t this question very similar to: [Is it possible to create a matrix with linear form - #4 by dokken](https://fenicsproject.discourse.group/t/is-it-possible-to-create-a-matrix-with-linear-form/16243/4)

I.e. use trial functions for `f` instead of a `Function`. Then you can post-multiply by the `f` coefficients.

---

_[View the full topic](https://fenicsproject.discourse.group/t/how-to-create-the-advection-matrix/16262)._
