MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
mbc_py.h
Go to the documentation of this file.
1 /* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/libraries/libmbc/mbc_py.h,v 1.12 2017/01/12 14:43:43 masarati Exp $ */
2 /*
3  * MBDyn (C) is a multibody analysis code.
4  * http://www.mbdyn.org
5  *
6  * Copyright (C) 1996-2017
7  *
8  * Pierangelo Masarati <masarati@aero.polimi.it>
9  * Paolo Mantegazza <mantegazza@aero.polimi.it>
10  *
11  * Dipartimento di Ingegneria Aerospaziale - Politecnico di Milano
12  * via La Masa, 34 - 20156 Milano, Italy
13  * http://www.aero.polimi.it
14  *
15  * Changing this copyright notice is forbidden.
16  *
17  * This program is free software; you can redistribute it and/or modify
18  * it under the terms of the GNU General Public License as published by
19  * the Free Software Foundation (version 2 of the License).
20  *
21  *
22  * This program is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25  * GNU General Public License for more details.
26  *
27  * You should have received a copy of the GNU General Public License
28  * along with this program; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30  */
31 
32 #ifndef MBC_PY_H
33 #define MBC_PY_H
34 
35 #include "mbc.h"
36 #include "mbc_py_global.h"
37 
38 extern int
39 mbc_py_nodal_initialize(const char *const path,
40  const char *const host, unsigned port,
41  int timeout, unsigned verbose, unsigned data_and_next,
42  unsigned refnode, unsigned nodes,
43  unsigned labels, unsigned rot, unsigned accels);
44 
45 extern int
46 mbc_py_nodal_negotiate(unsigned id);
47 
48 extern int
49 mbc_py_nodal_send(unsigned id, int last);
50 
51 extern int
52 mbc_py_nodal_recv(unsigned id);
53 
54 extern int
55 mbc_py_nodal_destroy(unsigned id);
56 
57 extern int
58 mbc_py_modal_initialize(const char *const path,
59  const char *const host, unsigned port,
60  int timeout, unsigned verbose, unsigned data_and_next,
61  unsigned refnode, unsigned modes);
62 
63 extern int
64 mbc_py_modal_negotiate(unsigned id);
65 
66 extern int
67 mbc_py_modal_send(unsigned id, int last);
68 
69 extern int
70 mbc_py_modal_recv(unsigned id);
71 
72 extern int
73 mbc_py_modal_destroy(unsigned id);
74 
75 #endif // MBC_PY_H
int mbc_py_nodal_initialize(const char *const path, const char *const host, unsigned port, int timeout, unsigned verbose, unsigned data_and_next, unsigned refnode, unsigned nodes, unsigned labels, unsigned rot, unsigned accels)
Definition: mbc_py.cc:97
static int timeout
int mbc_py_modal_recv(unsigned id)
Definition: mbc_py.cc:416
int mbc_py_nodal_recv(unsigned id)
Definition: mbc_py.cc:278
static unsigned rot
int mbc_py_nodal_negotiate(unsigned id)
Definition: mbc_py.cc:149
int mbc_py_nodal_destroy(unsigned id)
Definition: mbc_py.cc:288
int mbc_py_modal_send(unsigned id, int last)
Definition: mbc_py.cc:406
static int labels
int mbc_py_nodal_send(unsigned id, int last)
Definition: mbc_py.cc:268
const char * host
Definition: autopilot.c:142
static int data_and_next
static int nodes
static int verbose
Definition: ann_tr.c:51
int mbc_py_modal_destroy(unsigned id)
Definition: mbc_py.cc:426
unsigned short int port
Definition: autopilot.c:143
static int refnode
int mbc_py_modal_negotiate(unsigned id)
Definition: mbc_py.cc:363
const char * path
Definition: autopilot.c:141
int mbc_py_modal_initialize(const char *const path, const char *const host, unsigned port, int timeout, unsigned verbose, unsigned data_and_next, unsigned refnode, unsigned modes)
Definition: mbc_py.cc:312