Recent content by blizzard12345

  1. B

    Reynolds Number and its Characteristic Length?

    Hi I am a little confused as to what length to use as the characteristic length of the Reynolds number for a body in and incompressible flow that has no boundary conditions(ie there all open). im going to try and draw a few examples to help me out..(i have no idea why..) from what i have read...
  2. B

    What is the value of (beta) for a floating cylinder in a liquid?

    well .. i think i may have completely over thought this problem.. surly any floating object with a given weight has to displace the amount of water equal to that of its weight? on this basis i started again and turned out a very simple formula i assumed gauge pressure and then quite simply...
  3. B

    What is the value of (beta) for a floating cylinder in a liquid?

    okay, so I've taken everything into account, and reworked the equations, however the answer I am getting range from 0-45 degrees, between variations of density of the cylinder ranging from zero to half the liquid density, but from what's been said i believe this to be half of what i should be...
  4. B

    What is the value of (beta) for a floating cylinder in a liquid?

    Hi I've just had a look I can see what you mean the density of my cylinder would mean it sitting much higher on the surface.. I tried with a density of cylinder much closer to the density of water so it would sit below half way but the results it gives me never differ from around 30 I'm...
  5. B

    What is the value of (beta) for a floating cylinder in a liquid?

    hi sorry, A is a constant in this case 5 (our numbers change depending on our student numbers) as for sind(x) and cosd(x) they are just the MATLAB programming equivalent of sine and cosine but for angles in degree. for below the liquid area i have assumed that the water level will be above the...
  6. B

    What is the value of (beta) for a floating cylinder in a liquid?

    Homework Statement A circular cylinder, of cross sectional radius r = (2 + A) m, f oats in equilibrium on the horizontal flat surface of a liquid. The horizontal plane through the axis of the cylinder is parallel to the fl at liquid surface, which is very large in extent. A cartesian...
  7. B

    Calculating the gradient of a logarithmic scale

    Homework Statement hi i have the folowing data i would like to plot in matlab plotERRLW = 0.0466 0.0111 0.0074 0.0046 NX = 50 500 1000 2000 i am using a logarithmic graph to gain a straight line, if i wished to find the gradient of the line...
  8. B

    FEM - lax friedrichs two step method

    hi i have written a code which according to my tutor is the lax friedrichs two step technique , however i can't see how to show how i came across this code (i kinda changed random things and hoped at some point he would say its correct. thanks for any help in advance kyle :) source for...
  9. B

    MATLAB Lax wendroff two step method, matlab programming

    hi i have been trying to program a general problem to the lax wednroff technique that when done i can hopefully expand on to model a dam break, before i move on I am hoping if someone could tell me if I am on the right tracks thanks kyle function compare close all;clc;clear all %intial...
  10. B

    MATLAB Shallow water dam break problem for a 1D matlab model

    i am trying to spproximate a PDE in the form below using the lax wendroff 2 step method in MATLAB coding: [h ; hu ] = [ hu ; hu^2 + 1/2gh^2] = [0; -ghbz] (where bz will equal zero) i believe this is then the case d(h)/dt + d(hu)/dx = 0 and d(hu)/dt + d(hu^2 + 1/2gh^2)/dx = 0 as...
  11. B

    MATLAB Matlab loading data and plotting help

    hi i made the original code work now, i just needed to plot the variable and variabletwo in the form "variable.int_force" so use the saved variable name after it thanks for your help
  12. B

    MATLAB Matlab loading data and plotting help

    hi thanks for the reply when i use fopen it returns a value of -1 which I've read to mean it can't read my data?.. does this mean I am saving the data in the wrong format? I am currently using the below code to save a column vector fn = sprintf('deflection_%s',num2str(ii))...
  13. B

    MATLAB Matlab loading data and plotting help

    hi i want to load multiple sets of data in a loop and the plot a linear graph each time the loop runs below is my code so far, i can't seem to load any variable from the file names, the variable are for example int_force=[1;2;3;4;5] deflection=[1;2;3;4;5] function load_data clear all...
Back
Top