Editing Talk:Forum for GNU Octave

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Please ask questions at Octave's mailing-list, see [[FAQ#Where_do_I_get_additional_help.3F]].
Dear All,
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);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




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


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.
 
CMake Error: Run 'cmake --help' for all supported options.
  phi = alpha(1)*t*t + alpha(2)*t + alpha(3);
configure: error: Unable to find GDCM headers
  d_phi = 2*alpha(1)*t + alpha(2);
checking build system type... x86_64-unknown-linux-gnu
  dd_phi = 2*alpha(1);
checking host system type... x86_64-unknown-linux-gnu
  A = [(-inv(M)*(C-j*phi*G)) (-inv(M)*K); eye(size(M)) zeros(size(M))];
checking target system type... x86_64-unknown-linux-gnu
  [U,D] = eig(A);
checking for a sed that does not truncate output... /usr/bin/sed
  uncoupled_A = (inv(U))*A*(U);
checking for grep that handles long lines and -e... /usr/bin/grep
  B = [inv(M)*ubforce;zeros(size(M))*ubforce];
checking for uniq... uniq
  uncoupled_B = inv(U) * B;
checking for sort... sort
  double_uncoupled_A_1 = [(uncoupled_A(1,1) + uncoupled_A(2,2)) (-uncoupled_A(1,1)*uncoupled_A(2,2)); 1 0];
checking for mkoctfile... /usr/bin/mkoctfile
  double_uncoupled_A_2 = [(uncoupled_A(3,3) + uncoupled_A(4,4)) (-uncoupled_A(3,3)*uncoupled_A(4,4)); 1 0];
checking for octave-config... /usr/bin/octave-config
  double_uncoupled_A_3 = [(uncoupled_A(5,5) + uncoupled_A(6,6)) (-uncoupled_A(5,5)*uncoupled_A(6,6)); 1 0];
checking whether the C++ compiler works... yes
   U11 = [uncoupled_A(1,1)  uncoupled_A(2,2); 1 1];
checking for C++ compiler default output file name... a.out
   U22 = [uncoupled_A(3,3)  uncoupled_A(4,4); 1 1];
checking for suffix of executables...
   U33 = [uncoupled_A(5,5)  uncoupled_A(6,6); 1 1];
checking whether we are cross compiling... no
   U = U(1:6,1:6);
checking for suffix of object files... o
   U1 = blkdiag(U11,U22,U33);
checking whether the compiler supports GNU C++... yes
  double_uncoupled_A = blkdiag(double_uncoupled_A_1,double_uncoupled_A_2,double_uncoupled_A_3);
checking whether g++ accepts -g... yes
  double_uncoupled_B = U1 * inv(U) * B(1:6,:);
checking for g++ option to enable C++11 features... none needed
  gain = [1 0 0 0 0 0] * (phi^2)*exp(j*phi*t)*z;
checking how to run the C++ preprocessor... g++ -E
  dz = (double_uncoupled_A * z) + double_uncoupled_B * gain';
checking for stdio.h... yes
endfunction
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?
Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)