|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
Material library of the building faces. More...
#include <AMReX_REAL.H>#include <AMReX_Vector.H>#include <string>

Go to the source code of this file.
Classes | |
| struct | IBSEBMaterial |
Functions | |
| amrex::Vector< IBSEBMaterial > | read_ibseb_materials (const std::string &file) |
Material library of the building faces.
The CSV schema is the one of the ERF-SLUCM branch's material library, so the same file serves both models:
mat_id,name,albedo,emissivity,k_therm_W_per_mK,rho_cp_J_per_m3K,thickness_m,description
The I/O rank reads the file and broadcasts the entries as plain data; every rank then holds the same table. A face gets its material from its building (erf.ibseb.material_by_building) or the default (erf.ibseb.material_default); without a file every face uses the uniform properties of the inputs.
| amrex::Vector<IBSEBMaterial> read_ibseb_materials | ( | const std::string & | file | ) |
Read the material CSV on the I/O rank and broadcast it. Aborts on a missing file, a header that does not match the schema, a duplicate id, or a value outside its physical range.
Referenced by IBFaceSet::assign_materials().
