Go to the documentation of this file.
35#ifndef fvoxelvoffield_h
36#define fvoxelvoffield_h
56 auto indices =
voxelGrid->get_indices_from_point({coords[0], coords[1], coords[2]});
57 int indx =
voxelGrid->get_index( std::get<0>(indices),
59 std::get<2>(indices) );
69 ValueModeType mode,
TimeStep *tStep)
override {
76 ValueModeType mode,
TimeStep *tStep)
override {
80 for (
int i=1; i<=nnodes; i++) {
84 coords *= 1000./nnodes;
85 auto indices =
voxelGrid->get_indices_from_point({coords[0], coords[1], coords[2]});
86 int indx =
voxelGrid->get_index( std::get<0>(indices),
88 std::get<2>(indices) );
103 return "VoxelVOFField";
A class to represent a 3D grid of voxels.
const FloatArray & giveCoordinates() const
Node * giveNode(int i) const
virtual int giveNumberOfNodes() const
Field(FieldType b=FieldType::FT_Unknown)
void add(const FloatArray &src)
double giveIntrinsicTime()
Returns intrinsic time, e.g. time in which constitutive model is evaluated.
void saveContext(DataStream &stream) override
int evaluateAt(FloatArray &answer, Element *el, ValueModeType mode, TimeStep *tStep) override
virtual void initializeFrom(InputRecord &ir) override
int evaluateAt(FloatArray &answer, const FloatArray &coords, ValueModeType mode, TimeStep *tStep) override
virtual const char * giveClassName() const override
VoxelVOFField(VoxelGrid *vg=nullptr)
void setGrid(VoxelGrid *vg)
void restoreContext(DataStream &stream) override
int evaluateAt(FloatArray &answer, DofManager *dman, ValueModeType mode, TimeStep *tStep) override
FieldType
Physical type of field.
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