Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
slave.h File Reference

Go to the source code of this file.

Functions

double slave_interpolate (const char *name, double xp, double yp, double zp, bool linear)
 

Function Documentation

◆ slave_interpolate()

double slave_interpolate ( const char name,
double  xp,
double  yp,
double  zp,
bool  linear 
)

Coupled slave

This can be used in combination with [master.h]() to couple two Basilisk solvers.

Example of coupling function

This is a simple function which can be called by the master to retrieve (interpolated) field values from the slave.

Using this model, it should be easy to write more sophisticated coupling functions, if necessary.

Note that new coupling functions must be added to the list of symbols which are exported. See the recipe for slave.o in the examples Makefile for details.

Definition at line 21 of file slave.h.

References grid, scalar::i, interpolate(), lookup_field(), s, and x.

Here is the call graph for this function: