Closed HDFengChina closed 9 months ago
Error occured on "for _ in view('vorticity,velocity,pressure', namespace=globals()).range():"
What version of PhiFlow are you on?
You can check using import phi; phi.verify()
.
Also, could you send the full error stack trace?
What version of PhiFlow are you on? You can check using
import phi; phi.verify()
.Also, could you send the full error stack trace?
Thanks for your reply. It works in the version 2.5.1. It is a very useful tool for me.
Glad to hear! So the error only occurred in an older version and is gone in 2.5.1, right?
Glad to hear! So the error only occurred in an older version and is gone in 2.5.1, right?
Sure.
But it is difficult to determine whether it is the issue on my environmental or the phiflow. Anyway, the problem has been resolved.
Glad to hear! So the error only occurred in an older version and is gone in 2.5.1, right?
One more question.
Where is the Reynolds number located when solving the PDE? Maybe it is calculated by density, viscosity, inflow velocity. I think by changing the inflow velocity I can change the Reynolds number. But I did not find its definition in the code.
Thanks for your help.
The Reynolds number can be computed from your viscosity, characteristic velocity and characterstic length scale. So for a fixed setup, you can vary the viscosity (diffusivity) to affect the Reynolds number. See this demo for a fluid with diffusion.
The Reynolds number can be computed from your viscosity, characteristic velocity and characterstic length scale. So for a fixed setup, you can vary the viscosity (diffusivity) to affect the Reynolds number. See this demo for a fluid with diffusion.
Thanks for your answer, It can solve my problem.
Perfect!
I copied the demos like rotating bar and run them based on different version of PhiFlow.
An error AttributeError: 'NoneType' object has no attribute 'file' always occured.
Do you know the reason?
Thank you.