Setting inflow with a variable expression?

Hello,

I was wondering if it is possible to specify an inflow (or outflow) boundary condition with a variable expression, similar to how one can be used in the soln-ics?

If I try this in the .ini file:

[soln-bcs-inflow]

type = sub-in-frv

rho = rho0

u = 1.0-(0.2*y)^2

v = v0

I receive the error

NameError: name ‘y’ is not defined

Thanks for any help in this matter!

Anthony Ashley
Rensselaer Polytechnic Institute
PhD Student, Aerospace Engineering

This is not currently possible. While expressions such as:

  u = 1.0*gamma^2

are permitted those which would give each point in space a different
value of u are not supported. It is, I believe, on the to-do list.

Regards, Freddie.

Hi Anthony,

Thanks for your interest in PyFR.

I’m afraid this is not a feature at the moment - but it is definitely on our todo list!

Cheers

Peter