Talk:Forum for GNU Octave: Difference between revisions

From Octave
Jump to navigation Jump to search
(why output always zero after each time integration points?)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Dear All,
Please ask questions at Octave's mailing-list, see [[FAQ#Where_do_I_get_additional_help.3F]].
I am trying to write an transient analysis solver for a multi degree of freedom system. it consists of mass, stiffness, damping, gyroscopic damping matrices and so on. my initial condition is declared by zeros(2*nr,1). after I run the code, the output y which is a matrix of 6x41  has all it's rows and columns just zero. It would be really apprectiated if some one has an advice / opinion about what am I doing wrong?
for the main .m file it is as below:


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
== error running the configure script for dicom ==
alpha = [0.0020*2*pi 8*pi 0];
tspan = [0 4] ;
frunb=zeros(size(K,1),1); %%% unbalance vector
frunb(5,1) = 1; %%%
nr = 3;
options = odeset;
[t,y] = ode45(@deriv,tspan,zeros(2*nr,1),options,M,K,C,G,alpha,frunb);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




and below is the function deriv (saved in a different file named as deriv.m)
Hi,


I am trying to install dicom package of octave, using gnu octave 8.3.0 on ubuntu 23.2.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I at the end I have this kind of problem.
function dz = deriv(t,z,M,K,C,G,alpha,ubforce)
 
 
CMake Error: Run 'cmake --help' for all supported options.
  phi = alpha(1)*t*t + alpha(2)*t + alpha(3);
CMake Error: Run 'cmake --help' for all supported options.
  d_phi = 2*alpha(1)*t + alpha(2);
configure: error: Unable to find GDCM headers
  dd_phi = 2*alpha(1);
checking build system type... x86_64-unknown-linux-gnu
  A = [(-inv(M)*(C-j*phi*G)) (-inv(M)*K); eye(size(M)) zeros(size(M))];
checking host system type... x86_64-unknown-linux-gnu
  [U,D] = eig(A);
checking target system type... x86_64-unknown-linux-gnu
  uncoupled_A = (inv(U))*A*(U);
checking for a sed that does not truncate output... /usr/bin/sed
  B = [inv(M)*ubforce;zeros(size(M))*ubforce];
checking for grep that handles long lines and -e... /usr/bin/grep
  uncoupled_B = inv(U) * B;
checking for uniq... uniq
  double_uncoupled_A_1 = [(uncoupled_A(1,1) + uncoupled_A(2,2)) (-uncoupled_A(1,1)*uncoupled_A(2,2)); 1 0];
checking for sort... sort
  double_uncoupled_A_2 = [(uncoupled_A(3,3) + uncoupled_A(4,4)) (-uncoupled_A(3,3)*uncoupled_A(4,4)); 1 0];
checking for mkoctfile... /usr/bin/mkoctfile
  double_uncoupled_A_3 = [(uncoupled_A(5,5) + uncoupled_A(6,6)) (-uncoupled_A(5,5)*uncoupled_A(6,6)); 1 0];
checking for octave-config... /usr/bin/octave-config
   U11 = [uncoupled_A(1,1)  uncoupled_A(2,2); 1 1];
checking whether the C++ compiler works... yes
   U22 = [uncoupled_A(3,3)  uncoupled_A(4,4); 1 1];
checking for C++ compiler default output file name... a.out
   U33 = [uncoupled_A(5,5)  uncoupled_A(6,6); 1 1];
checking for suffix of executables...
   U = U(1:6,1:6);
checking whether we are cross compiling... no
   U1 = blkdiag(U11,U22,U33);
checking for suffix of object files... o
  double_uncoupled_A = blkdiag(double_uncoupled_A_1,double_uncoupled_A_2,double_uncoupled_A_3);
checking whether the compiler supports GNU C++... yes
  double_uncoupled_B = U1 * inv(U) * B(1:6,:);
checking whether g++ accepts -g... yes
  gain = [1 0 0 0 0 0] * (phi^2)*exp(j*phi*t)*z;
checking for g++ option to enable C++11 features... none needed
  dz = (double_uncoupled_A * z) + double_uncoupled_B * gain';
checking how to run the C++ preprocessor... g++ -E
endfunction
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking interpreter get_load_path... yes
checking   is_map or isstruct... isstruct
checking   is_cell or iscell... iscell
checking   is_numeric_type or isnumeric... isnumeric
checking   valid_identifier or octave::valid_identifier... octave::valid_identifier
checking   file_stat or octave::sys::file_stat... octave::sys::file_stat
checking for cmake... /usr/bin/cmake
checking for GDCM... no
configure: Trying fallback GDCM detection
checking for gdcm headers path... not found
 
error: pkg: error running the configure script for dicom
error: called from
    configure_make at line 101 column 9
    install at line 204 column 7
    pkg at line 619 column 9
 
What might be a solution?

Latest revision as of 20:49, 2 March 2024

Please ask questions at Octave's mailing-list, see FAQ#Where_do_I_get_additional_help.3F.

error running the configure script for dicom[edit]

Hi,

I am trying to install dicom package of octave, using gnu octave 8.3.0 on ubuntu 23.2.

I at the end I have this kind of problem.

CMake Error: Run 'cmake --help' for all supported options. CMake Error: Run 'cmake --help' for all supported options. configure: error: Unable to find GDCM headers checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for uniq... uniq checking for sort... sort checking for mkoctfile... /usr/bin/mkoctfile checking for octave-config... /usr/bin/octave-config checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking how to run the C++ preprocessor... g++ -E checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking interpreter get_load_path... yes checking is_map or isstruct... isstruct checking is_cell or iscell... iscell checking is_numeric_type or isnumeric... isnumeric checking valid_identifier or octave::valid_identifier... octave::valid_identifier checking file_stat or octave::sys::file_stat... octave::sys::file_stat checking for cmake... /usr/bin/cmake checking for GDCM... no configure: Trying fallback GDCM detection checking for gdcm headers path... not found

error: pkg: error running the configure script for dicom error: called from

   configure_make at line 101 column 9
   install at line 204 column 7
   pkg at line 619 column 9

What might be a solution?