Search code examples
python-3.xsolverpdefipyfluid-dynamics

Trouble representing terms for the momentum equation using Fipy


How would i go about representing the dyad (tensor product) in the following equation? I can't seem to figure out what terms in Fipy I should be using in general.

Cauchy

More specifically the resulting equation:

Cauchy

I'm mostly familiar with the transient and source terms, but I am at a loss on how to represent Term

Thanks,


Solution

  • There's more going on there than you're interested in (multi-phase with phase transformation), but see liquidVapor1D and liquidVapor2D for examples of implementing the momentum equation.