CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

MATLAB PROGRAMMING

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2008, 21:04
Default MATLAB PROGRAMMING
  #1
Natasha
Guest
 
Posts: n/a
Well..i am doing a project to study the wind flow and around a AUTOMOBILE ROTATING WHEEL...the catch is that i can do the analysis in fluent.However my professor wants to write a algorithm in MATLAB and run the program to study this flow effect..i have no clue how to do it...if any1 can help me with matlab, that would be really kind...my problem is stated below

Diameter of wheel =400 mm Width of the wheel=200 mm Contact length with road=50 mm Length of wind tunnel= 5.5 mm Height of wind tunnel=2.2 mm Width of wind tunnel=4.8 mm Inlet Air velocity=20 m/s (45mph) Outlet Pressure= 0 atmp Rotational speed of wheel=100 rad/s( 954 rpm) Velocity of the road= 20 m/s (45 mph)

please give ur responses freely...thanks in advance
  Reply With Quote

Old   April 11, 2008, 07:59
Default Re: MATLAB PROGRAMMING
  #2
Kasper
Guest
 
Posts: n/a
Matlab is not that difficult. It is very strong on vector/matrix notation. I would say that you can learn it very quick. What is it exactly you wan't to do? Which equation do you want to solve and so on??

You must have some assumptions, since it will be pretty difficult to solve in 3d in matlab.

I can help you if you describe your problem.

Best regards Kasper Skriver
  Reply With Quote

Old   April 11, 2008, 09:16
Default Re: MATLAB PROGRAMMING
  #3
Natasha
Guest
 
Posts: n/a
Hi Kasper,

thanks for the reply ! i appreciate..well my problem consists of drawing a rectangular wind tunnel in matlab. i want to do only in 2d. the wind tunnel will consist of a disc at the bottom center which represents a automobile wheel.then i have to give inlet boundary condition showing air at 11 m/s velocity.outlet pressure will be 0 atmp. i have to show a rotating boundary condition on the wheel ( it represents the rotation of the automobile wheel). I just have to show the program in matlab is stable. i can use any implicit method (Runga-kutta etc ) ...i have done this project in fluent. but i have no idea how to do program in matlab. i think i have to use Navier-Strokes Equation to solve it. also CFL should be less than 1. I would be grateful if u can help. thanks and take care.
  Reply With Quote

Old   April 14, 2008, 08:02
Default Re: MATLAB PROGRAMMING
  #4
Kasper
Guest
 
Posts: n/a
I don't understand how your proffesor expects you to accomplish this if you don't have any background in Matlab.

Just to understand the problem fully. You want to solve the flow in 2D by use of Matlab instead of Fluent?

First problem is then the mesh and second problem is to create a solver in Matlab that can work on your mesh. Both are quite complicated since it involves incorporating the wheel.

Please tell me what you mean by "i have done this project in fluent". What did you exactly do? Mesh in Gambit? and solution in fluent?

BR Kasper Skriver
  Reply With Quote

Old   April 14, 2008, 08:13
Default Re: MATLAB PROGRAMMING
  #5
Kiran Muley
Guest
 
Posts: n/a
Hello, Solving Problem in Fluent is totally different than solving it by programming. Steps require to do programing. It is must that u need to solve NS equation.. ( considering u don't need thermal analysis). if u had any CFD course thn u will easily understand that..

1. set u r Model ( N-s equation with assumption)

2. Formulation ( applying discretization method FEM/FVM/FDM)

3. Mess generation as u r problem is 2d u can easily draw profile in matlab and divide it into elements

4. get u r [k][x]=[f] matrix.. ie global stiffness matrix.( apply u r boundary condition according )

5. this matrix is nothing but set of linear equation.. u have ready made function .. eg. solve(a) in matlab get the vlaues of variable..

ones u got variable values thn other stuff is easy ... even u can do animation and postprossing in matlab.

if u dont knw matlab thn start learning it.. its easy and 2ed u need to know how to solve NS by numerical method..

best luck ..
  Reply With Quote

Old   May 1, 2008, 20:29
Default Re: MATLAB PROGRAMMING
  #6
Natasha
Guest
 
Posts: n/a
hi kiran..plz help me out...i need to draw a rectangle with a circular disc at the bottom of the rectangle in the center.how do i draw it in matlab.please tell me the program urgently.i need it urgently .plz plz help me.thanks
  Reply With Quote

Old   May 4, 2008, 07:48
Default Re: MATLAB PROGRAMMING
  #7
m@rk@s
Guest
 
Posts: n/a
Dear Natasha, would you elaborate your final output that you want from Matlab?
  Reply With Quote

Old   March 6, 2011, 06:17
Default HI
  #8
New Member
 
Sara
Join Date: Mar 2011
Location: esf
Posts: 1
Rep Power: 0
monmokhmokh is on a distinguished road
Hi
I have a problem
I want to Mesh scheme a Rectangular ( 40*20)
that they be smaller and smaller when they close to Borders , in fact in center of rectangular we musat have largest mesh
I want to draw this in tecplot
but I can't do the program in matlab
I am trying to leran it...but ....
please help me to write this program
Thnkyu
monmokhmokh is offline   Reply With Quote

Old   March 7, 2011, 12:57
Default
  #9
Senior Member
 
morteza08's Avatar
 
Morteza
Join Date: May 2010
Location: Iran,Islamic Republic of
Posts: 161
Rep Power: 15
morteza08 is on a distinguished road
Quote:
Originally Posted by monmokhmokh View Post
Hi
I have a problem
I want to Mesh scheme a Rectangular ( 40*20)
that they be smaller and smaller when they close to Borders , in fact in center of rectangular we musat have largest mesh
I want to draw this in tecplot
but I can't do the program in matlab
I am trying to leran it...but ....
please help me to write this program
Thnkyu
Dear friend
First of all. you must learn about generating mesh . I recommend you to the related e-books and pdfs by searching in google
you can use this keyword or something similar to this:
structured mesh generation in a rectangular domain

also you can read this ebook :
computational fluid dynamics by hoffman
------------------
I have a fortran code that generates mesh in a rectangular. the code has the capability for stretching mesh..

let me know if you find this useful
morteza08 is offline   Reply With Quote

Old   October 5, 2013, 12:41
Default
  #10
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 13
zaynah04 is on a distinguished road
hi..

Ihave my mesh in Gambit, i want to see it on matlab..

How can i do this in matlab? i have tried to import the data and plot it, but its not what i need..

Any advice and help bestowed towards me is most appreciated.
zaynah04 is offline   Reply With Quote

Old   October 9, 2013, 02:13
Default
  #11
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,151
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
http://www.cfd-online.com/Forums/blo...ume-tools.html
sbaffini is offline   Reply With Quote

Reply

Tags
hi to all


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF programming fullmonty FLUENT 5 June 30, 2011 02:40
Matlab programming for Fluent study case ASHLEY FLUENT 1 April 5, 2008 13:17
GUI programming with FORTRAN ztdep Main CFD Forum 1 August 30, 2007 13:22
Programming in CFD Lam Main CFD Forum 7 May 27, 2004 05:12
Programming in C Tony Main CFD Forum 5 March 7, 2002 12:40


All times are GMT -4. The time now is 02:35.