CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Tornado VLM Matlab Error (https://www.cfd-online.com/Forums/main/122649-tornado-vlm-matlab-error.html)

Puhumight August 24, 2013 07:58

Tornado VLM Matlab Error
 
Hi;

While i was searching, i found the Matlab Tornado codes that is very useful for Vortex Lattice Calculations. I am trying to run tornado studentbatch.m file but i took the related error:


??? Reference to non-existent field 'aftfuse'.

Error in ==> bodyplot at 6
Z=Z.*body.length(i).*(body.aftfuse(i));

Error in ==> studentbatch at 148
bodyplot(body);


As a result i added "body.aftfuse= [ 0.5 0.5 0.5]; " to the studentbatch.m

then i get the following error :


??? Attempt to reference field of non-structure array.

Error in ==> iterateAlpha at 52
CW=-(weight.gravity*weight.unitvector(3)+TZtot)/qS;

Error in ==> fTrimCLconstEW at 124
[state,results,lattice,ref]=iterateAlpha(engine,state,weight,qS,results,geo,l attice,ref,solvertype,max_iterations);

Error in ==> studentbatch at 175
[results,rudderangle,state,engine,converged]=fTrimCLconstEW(geo,state,trimaxis,trimwing,trimru dder,solvertype,engine,weight,results)

Thus ; i added "weight.gravity=[9.81];weight.unitvector=[0 0 -1]; and changed weight=100 as weight.ew=100; " in the studentbatch.m
Because of changing "weight" as "weight.ew"; I modified all "weight" as "weight.ew" in the fTrimCLconstEW[/B]

Then i faced with the following;

??? Input argument "CD" is undefined.

Error in ==> iterateAlpha at 53
CZ0=results.CZ+CD(3);

Error in ==> fTrimCLconstEW at 124
[state,results,lattice,ref]=iterateAlpha(engine,state,weight,qS,results,geo,l attice,ref,solvertype,max_iterations);

Error in ==> studentbatch at 177
[results,rudderangle,state,engine,converged]=fTrimCLconstEW(geo,state,trimaxis,trimwing,trimru dder,solvertype,engine,weight,results)


Even i tried, i could not find what cd refers to. Because there are many cd values in the code and it seems like a matrix( because it's 3th component is used infTrimCLconstEW).:confused: Is there anyone to help me? I will be really appreciated. Thanks in advance...
The link of related code:
http://www.redhammer.se/tornado/DL.html


All times are GMT -4. The time now is 16:57.