Blasius velocity profile at inlet

Hello,
I want to simulate a boundary layer flow over a flat plate. The inlet is a Blasius profile, which can be calculated for the specific Re_x needed. I tried to load the data from an external file for the .ini file, but it seems not possible. Does anyone how can I deal with this BC?

Best regards,
Yongxiang

Boundary conditions need to be functions. For a Blasius profile this should not be a problem with accurate approximations to the analytic solution being readily available.

Regards, Freddie.

Hello Freddie,
Thanks for your quick reply. As far as I understand, there are two ways to set up the Blasius profile at the inlet:

  1. code the self-similarity solution at the soln-bcs-inlet section. But it needs an iterative operation. Is the Python code in the ini file allowed?
  2. Pre-calculate the velocity profile and save it in an external file. But is loading data from external file in the ini file possible?

Best regards,
Yongxiang

Take your pre-calculated data and fit an expression to it. Then use this expression.

Regards, Freddie.

Hello Freddie,
Thanks very much for your suggestion. I have made my Blasius test case running. This is laminar boundary layer test case, so that I can fit my inlet profile and use the expression at the inlet BC. However, in the future, I may like to generate a turbulent inlet BC using one the synthetic eddy method. In this case, we can no longer use any explicit expression. In this case, how would I set the inlet BC?

Best regards,
Yongxiang

If you want to generate inflow turbulence the recommended approach is to use the turbulence generation plugin. This has shown itself to be vastly superior to boundary condition based approaches.

Regards, Freddie.