0% found this document useful (0 votes)
337 views2 pages

Basilisk Command

The document contains code snippets and commands for compiling C programs using qcc compiler and linking with Basilisk libraries. It also contains event definitions and code for outputting jet velocity data to a file during simulation. Links provided relate to Basilisk documentation and tutorials.

Uploaded by

vinod patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
337 views2 pages

Basilisk Command

The document contains code snippets and commands for compiling C programs using qcc compiler and linking with Basilisk libraries. It also contains event definitions and code for outputting jet velocity data to a file during simulation. Links provided relate to Basilisk documentation and tutorials.

Uploaded by

vinod patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1] qcc -O2 -Wall -D_FORTIFY_SOURCE=0 Bdropimpact.

c -o Bdropimpact -lm

2] ./Bdropimpact

3] qcc -Wall -O2 BpostBview.c -o BpostBview -L$BASILISK/gl -lglutils -lfb_osmesa


-lGLU -lOSMesa -lm

4]./BpostBview tb0.00 ts0.01 te5.00


5]qcc -O2 -Wall BpostTecplot.c -o BpostTecplot -lm

6]./BpostTecplot tb-0.00 ts0.01 te0.2


7]/usr/local/tecplot360ex/bin/tec360

development code

http://basilisk.fr/sandbox/Antoonvh/The_Tree_Grid_Structure_in_Basilsik

http://basilisk.fr/src/draw.h#box

http://basilisk.fr/sandbox/jmf/tutorial#boundary-conditions

http://basilisk.fr/sandbox/joubert/three-phase_test.h

http://basilisk.fr/sandbox/ray/

event jetvelocitydata (i = 0) // This event for data tracking of Jet velcoty


{
FILE *fp;
fp = fopen ("V-jet.txt", "w");
fprintf (fp, "time, Iteration, V-jet \r\n"); // First is time , second is
Iteration , third is V-jet velocity
fclose (fp);
}

event interfacepo (i++) // This is event for jet velocity calcualtion


{
FILE *fp;
fp = fopen ("V-jet.txt", "a");
double xval;
double yval;
double maxval;
double alp ;
//xval = 0;
//yval = 0;
// maxval= 0;
foreach (reduction(max:maxval))
{
if (f[] > 1e-6 && f[] < 1.0 - 1e-6 )
{ // check if cell is two phase
coord p;
coord n = mycs (point, f); // get normal to interface n or
compute normal from face fractions
//double alp = plane_alpha (f[], n); // get intercept in cell alpha
double alpha = plane_alpha (f[], n);
//plane_area_center (n, alp, &p); // get centroid of current two
phase cell interface
plane_area_center (n, alpha, &p);
// double xval = x + Delta*p.x; //its actual coord - xcentre +
delta*px i.e. the center of cell + the position of centroid * cell dimension
double yval = y + Delta*p.y;

if (yval > maxval) maxval = yval; //get the maximum y

}
}
fprintf (fp, "%f, %d, %f \r\n", t, i, yval);
fclose (fp);
}

qcc -O2 -Wall -D_FORTIFY_SOURCE=0 dropeqilibrium.c -o dropeqilibrium -lm

qcc -O2 -Wall -D_FORTIFY_SOURCE=0 Edrop.c -o Edrop -lm


ls

https://www3.nd.edu/~gtryggva/CFD-Course2010/

V-1.txt

plot 'V-1.txt' u 1:4 lc rgb "blue" lt 1 pt 7 ps 1.5;

qcc -Wall -O2 PJET.c -o PJET -L$BASILISK/gl -lglutils -lfb_osmesa -lGLU -lOSMesa
-lm

qcc -O2 -Wall -D_FORTIFY_SOURCE=0 BUB.c -o BUB -lm

qcc -Wall -O2 Dcbub.c -o Dcbub -L$BASILISK/gl -lglutils -lfb_osmesa -lGLU -lOSMesa
-lm

You might also like