[Nek5000-users] Specifying boundary condition from external text file

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Wed Jul 16 19:37:07 CDT 2014


Hi All,

I'm using NEK5000 for a university project. I've found it to be blissfully
fast and relatively easy to use.

The problem I'm doing is a blasius boundary layer case with perturbations
(simulating Tollmien–Schlichting waves), initially in 2D as per the blasius
example, then eventually moving to 3D.
I've so far been successful in running the blasius example case, and
modifying the mesh, polynomial order and other input parameters.

Now however, I want to change the way the boundary conditions are defined.
I have input files that are unique for each time step specifying velocity
and pressures along a line (the inlet) in text format. It would be possible
to re-format these as .csv or another file if necessary.

*How can I get NEK to read these files as boundary conditions on the inlet
for each time step?*

I understand it will be a specification in the user userbc subroutine in
blasius.usr however I'm not sure how to actually implement this.
Doing it in 2D will be a precursor to a 3D simulation with the file
specifying the inlet *plane *in a text file, rather than just a *line*.

Looking forward to a response.

Warm Regards,
Tom.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20140717/f233a4d5/attachment.html>


More information about the Nek5000-users mailing list