Showing posts with label Blue Kenue. Show all posts
Showing posts with label Blue Kenue. Show all posts

Saturday, August 13, 2011

Channel Mesh - Setting the name for the mesh

TELEMAC requires that the mesh be named 'BOTTOM'. This is edited in Blue Kenue. When using the T3 Channel Mesher, it is sometimes not obvious how to set the name. Here is the process:

  1. Generate the mesh.
  2. Open the properties of the new mesh.
  3. Select the Mesh tab.
  4. Select the Meta Data sub-tab.
  5. Set the Name keyword to 'BOTTOM'

Friday, July 15, 2011

Vector Plots - Visualizing the Results

Have been trying out some different packages to assist in analyzing the model results. I hate always using Excel as it really never does what I want. Plus with all the open source packages available, it is a shame not to use them. I am currently looking to generate vector plots of the velocity. I used Blue Kenue to extract an ASCII file containing the 3D velocity vectors at a specific time as a 3D Tetra Vector Mesh (t4v). I tried performing an average but Blue Kenue seems to loose the velocity vectors and records only the magnitude.

Anyways I wrote some code to load the t4v into a database where I attempt to normalize the data set. I then use a simple query to extract the profile along a set of nodes to an ASCII file in a CSV format. This can be easily opened by the numerical packages.

Octave - very simple to use and easily handles my non-uniform vector data:

 mdl = csvread("qryProfile_ke.txt");
 h = quiver(mdl(:,8),mdl(:,4),mdl(:,9),mdl(:,7),0.025);


Scilab: Will not handle my non-uniform data without a fight:

mdl2 = read_csv("qryProfile_ke.txt");
mdl = evstr(mdl2)
x = mdl(:,8);
y = mdl(:,4);
u = mdl(:,9);
v = mdl(:,7);

for i = 1:518,
xi = x(i);
yi = y(i);
ui = u(i);
vi = v(i);

champ1(xi,yi,ui,vi,rect=[13,9.9,15.5,10.2],arfact=0.2);
sleep(1);

end;


Anyways here is one of my plots from Octave from the k-epsilon model.

Sunday, June 19, 2011

Extracting a Profile From Blue Kenue

It is fairly easy to extract profiles along a line from Blue Kenue. For example, while setting up my flume models I needed to check the water depth to ensure that the flow was uniform along the length of the domain. First thing I did was digitize a line where I wanted to extract the profile. Once completed, I right-click the line in the Workspace menu and select Resample. Resampling will add verticies along the line, where the values will be extracted from the surface you are profiling. For my case I selected 10cm. This creates a new line subset.

As I was interested in checking the flow depth, I generated an average depth from the water depth profile. This was done by selecting the water depth in the Workspace menu, selecting Tools/ExtractSurface/Temporal Means.

Once you have prepared your surface, select the resampled line and select Tools/Map Object and select the surface you are interested. This will generate a 3D Line Set which can be plotted in Blue Kenue or saved and opened in Excel.