MADNESS 0.10.1
Plot_VTK.h
Go to the documentation of this file.
1/* My function to save a vtk file that visit can use
2 *
3 * Input params:
4 *
5 * npt_plot - number of points in each direction for plot
6 * L - box size
7 * plotlo - lowest orbital number to plot
8 * plothi - highest orbital number to plot
9 * molecule - molecule object, for creating the .xyz file
10 * densities - vector of densities to be ploted
11 * name - name you would like for orbital plots
12 */
13
14#ifndef SRC_APPS_molresponse_PLOT_VTK_H_
15#define SRC_APPS_molresponse_PLOT_VTK_H_
16
17#include <madness/mra/mra.h>
18
19#include <cstdint>
20#include <string>
21#include <vector>
22
23#include "../chem/molecule.h"
24#include "x_space.h"
25
26#if defined(__has_include)
27#if __has_include(<filesystem>)
28#define MADCHEM_HAS_STD_FILESYSTEM
29// <filesystem> is not reliably usable on Linux with gcc < 9
30#if defined(__GNUC__)
31#if __GNUC__ >= 7 && __GNUC__ < 9
32#undef MADCHEM_HAS_STD_FILESYSTEM
33#endif
34#endif
35
36#if defined(MADCHEM_HAS_STD_FILESYSTEM)
37
38#include <filesystem>
39namespace madness {
40
41void write_molecules_to_file(const Molecule& molecule, const std::string& geo_file, const double& scale = 1.0);
42void do_response_orbital_vtk_plots(World& world, int npt_plot, double L, const Molecule& molecule,
43 const vector_real_function_3d& ground_orbs, const response_matrix& responseMatrix);
44void do_response_density_vtk_plots(World& world, int npt_plot, double L, const Molecule& molecule,
45 const real_function_3d& ground_density,
46 const vector_real_function_3d& response_density);
47
48void do_response_density_vtk_plots_new(World& world, int npt_plot, double L, const Molecule& molecule,
49 const real_function_3d& ground_density,
50 const vector_real_function_3d& response_density, const std::string& name);
51void do_vtk_plots(World& world, int npt_plot, double L, int lowest_orbital, int highest_orbital,
52 const Molecule& molecule, std::vector<real_function_3d> densities, const std::string& name);
53
54void do_vtk_plots(World& world, int npt_plot, double L, Molecule molecule, real_function_3d& rho_0,
55 std::vector<real_function_3d>& rho_omega, std::vector<real_function_3d>& ground_orbitals,
56 X_space& Chi);
57
58} // namespace madness
59#endif
60#endif
61#endif
62#endif // SRC_APPS_molresponse_PLOT_VTK_H_
const double rho_0
Definition gygi_soltion.cc:63
Main include file for MADNESS and defines Function interface.
Namespace for all elements and tools of MADNESS.
Definition DFParameters.h:10
response_space scale(response_space a, double b)
std::vector< vector_real_function_3d > response_matrix
Definition response_functions.h:20
std::vector< real_function_3d > vector_real_function_3d
Definition functypedefs.h:94
Function< double, 3 > real_function_3d
Definition functypedefs.h:80
std::string name(const FuncType &type, const int ex=-1)
Definition ccpairfunction.h:28
static const double L
Definition rk.cc:46
static Molecule molecule
Definition testperiodicdft.cc:39