All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
hdf_eos_io.h
Go to the documentation of this file.
1 /*
2  -------------------------------------------------------------------
3 
4  Copyright (C) 2006-2014, Andrew W. Steiner
5 
6  This file is part of O2scl.
7 
8  O2scl is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 3 of the License, or
11  (at your option) any later version.
12 
13  O2scl is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with O2scl. If not, see <http://www.gnu.org/licenses/>.
20 
21  -------------------------------------------------------------------
22 */
23 #ifndef O2SCL_HDF_EOS_IO_H
24 #define O2SCL_HDF_EOS_IO_H
25 
26 /** \file hdf_eos_io.h
27  \brief HDF input of the \o2 EOS data files
28 */
29 
30 #include <hdf5.h>
31 
32 #include <o2scl/constants.h>
33 #include <o2scl/hdf_file.h>
34 #include <o2scl/lib_settings.h>
35 #include <o2scl/eos_had_skyrme.h>
36 #include <o2scl/eos_had_rmf.h>
37 #include <o2scl/eos_had_gogny.h>
38 
39 /** \brief Additional functions to read and write EOS data to HDF5 files
40  */
41 namespace o2scl_hdf {
42 
43  /** \brief Read the Gogny EOS from a data file
44  */
45  void gogny_load(o2scl::eos_had_gogny &ge, std::string model,
46  bool external=false);
47 
48  /** \brief Input a \ref o2scl::eos_had_rmf object from an HDF file
49 
50  If \ref external is <tt>false</tt> (the default), then the model
51  is loaded from the \o2 data directory <tt>rmfdata</tt> with the
52  suffix <tt>.o2</tt>. Otherwise, the parameter \c model is
53  taken to be the full pathname of the HDF5 file containing
54  the model to be loaded.
55  */
56  void rmf_load(o2scl::eos_had_rmf &rmf, std::string model,
57  bool external=false);
58 
59  /** \brief Input a \ref o2scl::eos_had_skyrme object from an HDF file
60 
61  If \ref external is <tt>false</tt> (the default), then the model
62  is loaded from the \o2 data directory <tt>skdata</tt> with the
63  suffix <tt>.o2</tt>. Otherwise, the parameter \c model is
64  taken to be the full pathname of the HDF5 file containing
65  the model to be loaded.
66  */
67  void skyrme_load(o2scl::eos_had_skyrme &sk, std::string model,
68  bool external=false);
69 
70  /** \brief Write a \ref o2scl::eos_had_skyrme object to an HDF file
71  */
72  void skyrme_write(hdf_file &hf, o2scl::eos_had_skyrme &sk, std::string name);
73 
74  /** \brief Write a \ref o2scl::eos_had_skyrme object to an HDF file
75  in the \o2 data directory
76  */
77  void skyrme_write(o2scl::eos_had_skyrme &sk, std::string model);
78 
79 }
80 
81 #endif
82 
83 
Relativistic mean field theory EOS.
Definition: eos_had_rmf.h:294
Skyrme hadronic equation of state.

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).
Hosted at Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads..