MADNESS 0.10.1
Macros | Functions | Variables
dielectric.cc File Reference

Example solution of Poisson's equation in a dielectric (polarizable) medium. More...

#include <madness/mra/mra.h>
#include <madness/mra/operator.h>
#include <madness/mra/funcplot.h>
#include <madness/tensor/solvers.h>
#include "molecularmask.h"
#include <madness/mra/nonlinsol.h>
#include <madness/constants.h>
#include <vector>
Include dependency graph for dielectric.cc:

Macros

#define TIME(MSG, X)
 

Functions

double charge_function (const coord_3d &r)
 
double exact_function (const coord_3d &x)
 
int main (int argc, char **argv)
 
double reciprocal (double x)
 

Variables

const double epsilon_0 = 1.0
 
const double epsilon_1 =10.0
 
const int k = 6
 
const double L = 5
 
const double R = 2.0
 
const double sigma = 0.1
 
const double thresh = 1e-4
 
double XXstart
 

Detailed Description

Example solution of Poisson's equation in a dielectric (polarizable) medium.

Macro Definition Documentation

◆ TIME

#define TIME (   MSG,
 
)
Value:
X; \
if (world.rank() == 0) print("timer:",MSG,"used",wall_time()-XXstart) \
double XXstart
Definition dielectric.cc:192
void print(const T &t, const Ts &... ts)
Print items to std::cout (items separated by spaces) and terminate with a new line.
Definition print.h:225
double wall_time()
Returns the wall time in seconds relative to an arbitrary origin.
Definition timers.cc:48
Definition timing_utilities.h:9

Function Documentation

◆ charge_function()

double charge_function ( const coord_3d r)

References madness::constants::pi, and pow().

Referenced by main().

◆ exact_function()

double exact_function ( const coord_3d x)

References epsilon_0, epsilon_1, and R.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ reciprocal()

double reciprocal ( double  x)

Referenced by main().

Variable Documentation

◆ epsilon_0

const double epsilon_0 = 1.0

Referenced by exact_function(), and main().

◆ epsilon_1

const double epsilon_1 =10.0

Referenced by exact_function(), and main().

◆ k

const int k = 6

Referenced by main().

◆ L

const double L = 5

Referenced by main().

◆ R

const double R = 2.0

Referenced by exact_function(), and main().

◆ sigma

const double sigma = 0.1

◆ thresh

const double thresh = 1e-4

Referenced by main().

◆ XXstart

double XXstart