MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / write_tables

Method write_tables

src/Backends/Tabular/TabularBackends.cpp:368–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void CoolProp::TabularBackend::write_tables() {
369 std::string path_to_tables = this->path_to_tables();
370 make_dirs(path_to_tables);
371 dataset = library.get_set_of_tables(this->AS).first;
372 PackablePhaseEnvelopeData& phase_envelope = dataset->phase_envelope;
373 PureFluidSaturationTableData& pure_saturation = dataset->pure_saturation;
374 SinglePhaseGriddedTableData& single_phase_logph = dataset->single_phase_logph;
375 SinglePhaseGriddedTableData& single_phase_logpT = dataset->single_phase_logpT;
376 write_table(single_phase_logph, path_to_tables, "single_phase_logph");
377 write_table(single_phase_logpT, path_to_tables, "single_phase_logpT");
378 write_table(pure_saturation, path_to_tables, "pure_saturation");
379 write_table(phase_envelope, path_to_tables, "phase_envelope");
380}
381void CoolProp::TabularBackend::load_tables() {
382 auto [ds, loaded] = library.get_set_of_tables(this->AS);
383 dataset = ds;

Callers

nothing calls this directly

Calls 4

path_to_tablesMethod · 0.95
make_dirsFunction · 0.85
write_tableFunction · 0.85
get_set_of_tablesMethod · 0.80

Tested by

no test coverage detected