TRIQS/triqs_ctseg 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
solver_core.hpp
1// Copyright (c) 2022--present, The Simons Foundation
2// Copyright (c) 2022--present, Max Planck Institute for Polymer Research, Mainz, Germany
3// This file is part of TRIQS/ctseg and is licensed under the terms of GPLv3 or later.
4// SPDX-License-Identifier: GPL-3.0-or-later
5// See LICENSE in the root of this distribution for details.
6
7#pragma once
8
9#include <optional>
10#include "params.hpp"
11#include "work_data.hpp"
12#include "inputs.hpp"
13#include "results.hpp"
14#include <triqs/utility/macros.hpp>
15
16namespace triqs_ctseg {
17
20
21 // Inverse temperature
22 double beta;
23
24 // The set of inputs
25 inputs_t inputs;
26
27 // mpi communicator
28 mpi::communicator c;
29
30 public:
33
36
39
45
50 void solve(solve_params_t const &p);
51
52 // Green's function views for Python interface
53 // do NOT add const here : python uses a non const object and non const view
54
56 C2PY_PROPERTY_GET(Delta_tau) block_gf_view<imtime> Delta_tau() { return inputs.Delta; }
57
59 C2PY_PROPERTY_GET(Jperp_tau) gf_view<imtime> Jperp_tau() { return inputs.Jperpt; }
60
62 C2PY_PROPERTY_GET(D0_tau) block2_gf_view<imtime> D0_tau() { return inputs.D0t; }
63
64 // --------------- h5 -------------------------
65 static std::string hdf5_format() { return "CTSEG_SolverCore"; }
66 friend void h5_write(h5::group h5group, std::string subgroup_name, solver_core const &s);
67 C2PY_IGNORE static solver_core h5_read_construct(h5::group h5group, std::string subgroup_name);
68 };
69
70} // namespace triqs_ctseg
results_t results
Container for all results accumulated by the CTQMC simulation.
C2PY_PROPERTY_GET(Jperp_tau) gf_view< imtime > Jperp_tau()
Dynamical spin-spin interaction .
solver_core(constr_params_t const &p)
Initialize the solver.
void solve(solve_params_t const &p)
Solve the impurity problem.
constr_params_t constr_params
Parameters used for constructing the solver.
C2PY_PROPERTY_GET(Delta_tau) block_gf_view< imtime > Delta_tau()
Hybridization function .
C2PY_PROPERTY_GET(D0_tau) block2_gf_view< imtime > D0_tau()
Dynamical density-density interaction .
solve_params_t solve_params
Parameters passed to the solve() method.
Parameters used for constructing the solver class.
Definition params.hpp:16
Container for all results accumulated by the CTQMC simulation.
Definition results.hpp:17
Parameters passed to the solve() method of the solver class.
Definition params.hpp:34