OOFEM 3.0
Loading...
Searching...
No Matches
Voxel Struct Reference

A struct to represent a single voxel. More...

#include <VoxelGrid.h>

Public Member Functions

double time_activated ()
 Get the time the voxel was activated.
double vof ()
 Get the volume of fluid (infill percentage) of the voxel.
double getVofAt (double time)

Public Attributes

int id = -1
std::array< int, 8 > nodes
double timeActivated = 0.0
std::vector< std::tuple< double, double > > vofHistory

Detailed Description

A struct to represent a single voxel.

Definition at line 23 of file VoxelGrid.h.

Member Function Documentation

◆ getVofAt()

double Voxel::getVofAt ( double time)
inline

Definition at line 49 of file VoxelGrid.h.

References vofHistory.

◆ time_activated()

double Voxel::time_activated ( )
inline

Get the time the voxel was activated.

Returns
The time the voxel was activated.

Definition at line 33 of file VoxelGrid.h.

Referenced by oofem::AdditiveManufacturingProblem::add_element_if_not_exists2(), and oofem::AdditiveManufacturingProblem::add_sm_element_if_not_exists2().

◆ vof()

double Voxel::vof ( )
inline

Get the volume of fluid (infill percentage) of the voxel.

Returns
The volume of fluid (infill percentage) of the voxel.

Definition at line 42 of file VoxelGrid.h.

References vofHistory.

Member Data Documentation

◆ id

int Voxel::id = -1

◆ nodes

std::array<int, 8> Voxel::nodes

◆ timeActivated

double Voxel::timeActivated = 0.0

The time the voxel was activated.

Definition at line 26 of file VoxelGrid.h.

◆ vofHistory

std::vector<std::tuple<double, double> > Voxel::vofHistory

The time of each vof increment and a corresponding vof value.

Definition at line 27 of file VoxelGrid.h.

Referenced by oofem::AdditiveManufacturingProblem::add_element_if_not_exists2(), getVofAt(), and vof().


The documentation for this struct was generated from the following file:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011