mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Adding CAD cell class and constructor.
This commit is contained in:
parent
85722f5e5f
commit
dcf3eb84ee
3 changed files with 18 additions and 3 deletions
|
|
@ -111,7 +111,10 @@ public:
|
|||
|
||||
explicit Cell(pugi::xml_node cell_node);
|
||||
|
||||
//! \brief Determine if a cell contains the particle at a given location.
|
||||
explicit Cell();
|
||||
|
||||
//! \brief Determine if a cell contains the particle at a given location.
|
||||
//! Determine if a cell contains the particle at a given location.
|
||||
//!
|
||||
//! The bounds of the cell are detemined by a logical expression involving
|
||||
//! surface half-spaces. At initialization, the expression was converted
|
||||
|
|
@ -146,5 +149,11 @@ protected:
|
|||
bool contains_complex(Position r, Direction u, int32_t on_surface) const;
|
||||
};
|
||||
|
||||
class CADCell : public Cell
|
||||
{
|
||||
explicit CADCell();
|
||||
|
||||
};
|
||||
|
||||
} // namespace openmc
|
||||
#endif // OPENMC_CELL_H
|
||||
|
|
|
|||
|
|
@ -209,6 +209,8 @@ Universe::to_hdf5(hid_t universes_group) const
|
|||
// Cell implementation
|
||||
//==============================================================================
|
||||
|
||||
Cell::Cell() {} // empty constructor
|
||||
|
||||
Cell::Cell(pugi::xml_node cell_node)
|
||||
{
|
||||
if (check_for_node(cell_node, "id")) {
|
||||
|
|
@ -586,9 +588,13 @@ Cell::contains_complex(Position r, Direction u, int32_t on_surface) const
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
// Non-method functions
|
||||
// CAD Cell implementation
|
||||
//==============================================================================
|
||||
|
||||
CADCell::CADCell() : Cell{} {};
|
||||
|
||||
//==============================================================================
|
||||
// Non-method functions
|
||||
extern "C" void
|
||||
read_cells(pugi::xml_node* node)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ void read_coeffs(pugi::xml_node surf_node, int surf_id, double &c1, double &c2,
|
|||
// Surface implementation
|
||||
//==============================================================================
|
||||
|
||||
Surface::Surface() {}
|
||||
Surface::Surface() {} // empty constructor
|
||||
|
||||
Surface::Surface(pugi::xml_node surf_node)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue