🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Use particle radius in Particle Body Force API

User: "Yangyang_Shen"
Altair Community Member
Updated by Yangyang_Shen

Hi. I'm writing a particle body force API that needs to use particle radius in my calculation: Y = A * particle.radius + B; 

But when compiling, I get the error: class "NExternalForceTypesV3_0_0::SParticle" has no member "radius" 

So particle.radius is not in the function namespace NExternalForceTypesV3_0_0.

Can I include particle.radius, similar to other properties (i.e. mass, volume) ? See screenshot below for the new line in the red box. 

image

Find more posts tagged with