Rank: 2272 based on 57 downloads (last 30 days) and 4 files submitted
photo

Thomas Clark

E-mail
Company/University
University Of Cambridge
Lat/Long
52.198067, 0.11948

Personal Profile:

I'm a fluid dynamicist, currently finishing off my PhD at Cambridge University Engineering Department, UK. My specialist subject is turbulent structures in Boundary layers.

I do part time consultancy work covering tidal stream turbine design, general marine propeller/turbine design, experimental techniques (Particle Image Velocimetry and related) and design optimisation. I like to use MATLAB for most of my work!
Please feel free to contact me if you'd be interested in corresponding, or require a consultant for tasks similar to the above.

In my spare time, I walk, sail, go climbing, paint with watercolours (abstract and landscapes) and play electric guitar. At least, I would do all those things, if I wasn't using Matlab most of the time...

Professional Interests:
Fluid dynamics, Tidal Turbines, Marine Engineering, Propeller / Turbine Design, Design Optimisation

 

Watch this Author's files

 

Files Posted by Thomas View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Sep 2010 Screenshot raiseFigure - Intuitive alternative to figure(h) command Identifies figures by Title (or tag), not by figure number Author: Thomas Clark figure, handle, tag, name, title 13 0
16 Sep 2009 Default_Path_Retrieval Save and retrieve last-used path strings. Ideal for users of uigetfile() and similar functions. Author: Thomas Clark uigetfile, uigetdir, uiputfile, path handling, path, default path 16 0
25 Jun 2009 Screenshot FORTRAN_Mex_Highlighter Improvement of syntax highlighting for FORTRAN MEX files (using an external editor like GEDIT) Author: Thomas Clark gedit, fortran, mex, syntax, highlighting, editor 12 0
25 Aug 2005 Screenshot OceanMap Manually enter matrix elements in a GUI, then save to a *.MAT file. Author: Thomas Clark matrices, flexible array editor, flexarray, matrix, gui, submersible 16 9
  • 4.83333
4.8 | 6 ratings
Comments and Ratings by Thomas View all
Updated File Comments Rating
17 Mar 2014 stlwrite - Write binary or ascii STL file This is an update to the excellent work done by Sven Holcombe to add color support Author: Grant Lohsen

Immediate bug using the STLWRITE(FILE,FACES,VERTICES) syntax:

'Attempted to access facecolor(:,1); index out of bounds because size(facecolor)=[0,0]'

Unfortunately, the options parsing code is pretty dense (much denser than it need be, I think) so rather than debug it myself, I'm shifting back to Sven's code.

Grant, you may find this submission useful; its a very convenient and robust way of options parsing:
http://www.mathworks.com/matlabcentral/fileexchange/9082-parsepvpairs

04 Mar 2014 Visual Studio Toolbar for mex interface with video tutorial Seamless interface with VS 2010 and Matlab for development in MEX. Video linked to step you through. Author: Stefan Karlsson

Used the VS2012 extension.

Works seamlessly, thank you very much.

It took me a long time to figure out how to do this for IFC on Linux, I wasn't relishing the process of working out the same thing on VS2012 for an entirely different platform!

11 Jun 2013 Small Amplitude Wave Theory Parameters of a water wave, using small amplitude wave theory. Author: Gabriel Ruiz

Downgrading my rating after finding more serious bugs in the equations for fluid velocity (U,W) which should not be a function of g according to:
http://en.wikipedia.org/wiki/Airy_wave_theory
More than happy to up my rating again if there is a defence of the system used

At this point it is more rigorous to simply re-write the function rather than comb through line by line looking for more bugs.

11 Jun 2013 Small Amplitude Wave Theory Parameters of a water wave, using small amplitude wave theory. Author: Gabriel Ruiz

re. my previous comment - apologies, the sigma/omega definition is clear and consistent with the intrinsic angular frequency sigma.

11 Jun 2013 Small Amplitude Wave Theory Parameters of a water wave, using small amplitude wave theory. Author: Gabriel Ruiz

The submission is highly unrefined in terms of coding practice. For example, variables (such as z and t) are reassigned during the code, making it very difficult to read.

It is possible this leads to a bug since the values of t are defined in line 82 then redefined as an integer counter in line 98 and elsewhere.

There is a bug in the axial fluid velocity term:
cos(kx-wt)
is expressed as
cos(kx - w-t)
on lines 108, 178 248

... and several similar mistakes are made elsewhere.

Some strange definitions are made - for example 'omega' is labelled 'sigma'.

That said, if you're wanting an implementation of the airy wave functions as defined in the table on this page:
http://en.wikipedia.org/wiki/Airy_wave_theory
It is much easier to alter this function than start from scratch, especially if not familiar with wave theory. So thanks for getting me some of the way there!

Comments and Ratings on Thomas' Files View all
Updated File Comment by Comments Rating
02 Dec 2008 OceanMap Manually enter matrix elements in a GUI, then save to a *.MAT file. Author: Thomas Clark Giaccari, Luigi

That'is it Ifound
Mister clark there is nothing wrong in my pc, maybe you should
turn the profile off when you run a new test try this. Especially
before giving low and inappropriate rating.

%% PUT THIS IN A SCRIPT AND RUN IT
% profile on
% profile clear

%%%%%%%%%%%%%%%%%%%%%%%%

%Maybe you forgot this !!!!

profile off

profile off

profile off

profile off

%%%%%%%%%%%%%%%%%%%%%%%

Npoints = logspace(1,6,15);
lengthN = numel(Npoints);
convhull_times = zeros(lengthN,1);
chull2d_times = zeros(lengthN,1);
for i = 1:lengthN
N=ceil(Npoints(i));
x=rand(N,1);
y=rand(N,1);
tic
chull1 = convhull(x,y);
convhull_times(i) = toc;
tic
chull=ConvHull2D(x,y);
chull2d_times(i) = toc;
end

figure()
semilogx(Npoints,convhull_times,'g-')
hold on
semilogx(Npoints,chull2d_times,'b-')
legend({'Native convhull';'convhull2d'})
title('Performance comparison')
% profile viewer

05 Oct 2007 OceanMap Manually enter matrix elements in a GUI, then save to a *.MAT file. Author: Thomas Clark Clark, Tom

Michele,

ActiveX objects do not (usually) have a visibility property. Nor can they be embedded in an uipanel (which of course may be hidden along with it's contents).

The only way to hide activeX objects (that I know of) is to move them:
>move(handle,[x y wdth ht]);
check out the help on move for more info. Don't forget to save the original position so you can move it back!

---
Kind Regards

Tom

26 Jul 2007 OceanMap Manually enter matrix elements in a GUI, then save to a *.MAT file. Author: Thomas Clark Micheli, Michele

Thank you!

just a question: is it possible to Hide/unHide the FlexGrid control?

09 Jul 2007 OceanMap Manually enter matrix elements in a GUI, then save to a *.MAT file. Author: Thomas Clark Perlovskiy, Eugene

Thank's for good example.
However, I don't know how use the ColWidth property of flexArray. I want to exchange a column width in flexArray. Can you help me?

03 Apr 2007 OceanMap Manually enter matrix elements in a GUI, then save to a *.MAT file. Author: Thomas Clark asti, gustavi

finally something usefull

Contact us