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
6This is used in combination with [slave.h]().
7
8The user interface is just `slave_start` which defines the starting
9time of the slave simulation and the interface of coupling functions:
10here only `slave_interpolate()`. */
11
12double slave_start = 0.;
13
14extern 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++) */
21void event_slave (void) {
22 extern void slave_step (double t);
24}
25
26/** @brief Event: slave_end (t = end) */
27void event_slave_end (void) {
28 extern void slave_stop();
29 slave_stop();
30}
int x
Definition common.h:76
double t
Definition events.h:24
double slave_interpolate(const char *name, double xp=0, double yp=0, double zp=0, bool linear=false)
Definition slave.h:21
double slave_start
Definition master.h:12
void event_slave_end(void)
Event: slave_end (t = end)
Definition master.h:27
void event_slave(void)
Event: slave (i++)
Definition master.h:21