CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Error using plot Conversion to double from sym is n

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 24, 2016, 04:53
Default Error using plot Conversion to double from sym is n
  #1
New Member
 
samhit
Join Date: Apr 2016
Posts: 1
Rep Power: 0
samhit is on a distinguished road
hello everyone

Please help me remove the error - Error using plot
Conversion to double from sym is not possible.

Following is my code :

clear all
clc

p = 1.225 ; % density of air
nu = 0.00001983 ; % viscosity of air

for xdH = 0.5:0.05:0.8
syms x
dH = x/xdH ;

Re1 = 4;
Re2 = 5 ;
Re3 = 6 ;
Re4 = 7 ;
Re5 = 8 ;
Re6 = 9 ;
Re7 = 10 ;


u1 = Re1*nu/(p*dH) ;
u2 = Re2*nu/(p*dH) ;
u3 = Re3*nu/(p*dH) ;
u4 = Re4*nu/(p*dH) ;
u5 = Re5*nu/(p*dH) ;
u6 = Re6*nu/(p*dH) ;
u7 = Re7*nu/(p*dH) ;

end

plot(xdH,u1,xdH,u2,xdH,u3,xdH,u4,xdH,u5,xdH,u6,xdH ,u7)
samhit is offline   Reply With Quote

Reply


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
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 08:31
Continuing User Defined Real Gas Model issues aeroman FLUENT 6 April 8, 2016 04:34
Parallel User Defined Real Gas Model aeroman FLUENT 4 July 1, 2015 07:09
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
REAL GAS UDF brian FLUENT 6 September 11, 2006 09:23


All times are GMT -4. The time now is 14:33.