// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // clang-format off #include "stdafx.h" // clang-format on #include "gtest/gtest.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include TEST( Particle_SPH, Evaluation ) { using namespace frantic::particles; using namespace frantic::graphics; using namespace frantic::volumetrics; using namespace frantic::volumetrics::levelset; channel_map pcm; pcm.define_channel( _T("Position") ); pcm.define_channel( _T("Velocity") ); pcm.define_channel( _T("Acceleration") ); pcm.define_channel( _T("Density") ); pcm.define_channel( _T("GradDensity") ); pcm.define_channel( _T("InelasticCollisionWeightedMass") ); pcm.define_channel( _T("InelasticCollisionCOMPos") ); pcm.define_channel( _T("InelasticCollisionCOMVel") ); pcm.define_channel( _T("InelasticCollisionMomentumTransfer") ); pcm.define_channel( _T("AccGravityTerm") ); pcm.define_channel( _T("AccPressureTerm") ); pcm.define_channel( _T("GhostGradDensityTerm") ); pcm.define_channel( _T("VelInelasticPrtTerm") ); pcm.define_channel( _T("VelInelasticOccTerm") ); pcm.define_channel( _T("VelEulerIntTerm") ); pcm.end_channel_definition(); boundbox3f bounds( vector3f(), vector3f( 20 ) ); particle_grid_tree pgt( pcm, frantic::volumetrics::voxel_coord_system() ); }