MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
trim.cc File Reference
#include "mbconfig.h"
#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <cstdio>
#include <cstdlib>
#include <cerrno>
#include <sys/un.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <iostream>
#include <sstream>
#include <vector>
#include "sock.h"
#include "s2s.h"
#include "solman.h"
#include "linsol.h"
Include dependency graph for trim.cc:

Go to the source code of this file.

Classes

class  BasicIO
 
class  SocketBasicIO
 
class  StreamBasicIO
 
class  IO
 
class  ConvergenceCheck
 
class  FFDConvergenceCheck
 
class  TrimEval
 
class  NRTrim
 

Functions

int main (int argc, char *argv[])
 

Variables

static SocketBasicIO socket_basic_IO
 
static StreamBasicIO stream_basic_IO
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 550 of file trim.cc.

References NRTrim::DoTrim(), M_PI, and IO::nControls().

551 {
552  IO io(argc, argv);
553  if (io.nControls() != 4) {
554  silent_cerr("need 4 controls" << std::endl);
555  throw;
556  }
557 
558  NRTrim trim(io, 4, 1.e-6);
559 
560  std::vector<double> F(4, 0.);
561  std::vector<double> I(4, 0.);
562  std::vector<double> X(4, 0.);
563 
564  F[0] = .6;
565  F[1] = .0;
566  F[2] = .0;
567  F[3] = 260.;
568 
569  I[0] = .5/180*M_PI;
570  I[1] = .5/180*M_PI;
571  I[2] = .5/180*M_PI;
572  I[3] = .1/180*M_PI;
573 
574  trim.DoTrim(F, I, X);
575 }
#define M_PI
Definition: gradienttest.cc:67
Definition: trim.cc:159
Definition: trim.cc:465

Here is the call graph for this function:

Variable Documentation

SocketBasicIO socket_basic_IO
static

Definition at line 76 of file trim.cc.

Referenced by IO::Setup().

StreamBasicIO stream_basic_IO
static

Definition at line 84 of file trim.cc.

Referenced by IO::Setup().