Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
master.h
Go to the documentation of this file.
1
/** @file master.h
2
*/
3
/**
4
# Coupling interface for master/slave simulations
5
6
This is used in combination with [slave.h]().
7
8
The user interface is just `slave_start` which defines the starting
9
time of the slave simulation and the interface of coupling functions:
10
here only `slave_interpolate()`. */
11
12
double
slave_start
= 0.;
13
14
extern
double
slave_interpolate
(
const
char
* name,
double
xp
= 0,
double
yp
= 0,
double
zp
= 0,
15
bool
linear
=
false
);
16
17
/**
18
## Synchronization events */
19
20
/** @brief Event: slave (i++) */
21
void
event_slave
(
void
) {
22
extern
void
slave_step
(
double
t
);
23
slave_step
(
t
+
slave_start
);
24
}
25
26
/** @brief Event: slave_end (t = end) */
27
void
event_slave_end
(
void
) {
28
extern
void
slave_stop
();
29
slave_stop
();
30
}
x
int x
Definition
common.h:76
t
double t
Definition
events.h:24
slave_interpolate
double slave_interpolate(const char *name, double xp=0, double yp=0, double zp=0, bool linear=false)
Definition
slave.h:21
slave_start
double slave_start
Definition
master.h:12
event_slave_end
void event_slave_end(void)
Event: slave_end (t = end)
Definition
master.h:27
event_slave
void event_slave(void)
Event: slave (i++)
Definition
master.h:21
master.h
Generated by
1.9.8