Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Matlab DSP | odezero: an event disappeared (internal error)

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

odezero: an event disappeared (internal error) - harinath babu - May 18 21:13:44 2008



I am working in matlab..this code is regarding
atomization of water which actually used in
evaporation using spray technology...My droplets are
of order 500 microns which reduce upto 10
microns......I am using ODE45 to solve an differential
equation...where the integration has to stop when
diameter reaches to zero are less then zero..I am
using event option 4 that purpose but its not
working.....I am getting an error msg saying 'odezero:
an event disappeared (internal error)'..I am sending
over view of my code......can anybody help me in
solving my problem..I will be very thankful if anyone
can help me....
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%hollow_cone.m%%%%%%%%%%%%%%%%%%%%%%%%
%%%% input parameters
%%% constants...
options =
odeset('RelTol',1e-3,'AbsTol',10e-8,'Events',@events_all,'Refine',4);
 [t,y,TE,YE,IE] = ode45(@atomization_temp, [0 2.4e-3],
[0.2e-3 0], options, nuv_w,...);

%%%%%%%%%%%%%%%%%%%%%%% atomization_temp.m %%%%%%%%%%
function [adot] = atomization_temp(t,y,nuv_w,...)
    
%%%calculations.......
if r <= y(1)
ad1 =-(y(1) - r)/tuv; %differential equation for
droplet dia
                           % this drop should not go
-ve
else
    ad1 = (y(1) - r)/tuv;
end
%%%%%%%%calculations....

W_f %%%velocity
adot =[ad1; W_f];

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
events_all%%%%%%%%%%%%%%%%%%%%
function [value, isterminal, direction] =
events_all(t,y,...

 value = abs(y(1)) + y(1) ; %Detect diameter = 0;
                                  
isterminal = 1; % Stop the integration

direction = -1;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Thank you
hari...

iitm


(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )