Skip to main content

Posts

Showing posts with the label Apocrita

Running Parallel UDF on Linux OS( HPC)

Running Parallel UDF on Linux OS Platform: Apocrita, QMUL, HPC Goal: imposing 2nd stokes wave on velocity inlet BC, ANSYS Fluent velocity components of 2nd Stokes wave is defined by UDF Steps: 1.       Edit source code 2.       Setup the Directory structure 3.       Build the UDF library .      Load the UDF Library Load and Hood the UDF to specified BCs in journal file 1.      Source code x component of 2nd stokes wave /*second order stokes wave at inlet Boundary, wave velocity components are from equations 3.27 and 3.58, Pengzhi lin. numerical modeling of water waves. CRC press, 2008*/ #include "udf.h" #define pi 3.14159265359 /*define  constants*/ #define U  0.6 /*free stream velocity*/ #define H 0.076 /*wave height*/ #define g 9.81 /*gravity acceleration*/ #define L 4.8 /*wave length*/ #define d 1.6 /*water depth*...