Is the use scenario of API:Multiple Fields when the fluid fills all spaces?
Is the use scenario of API-Multiple Fields when the fluid fills all spaces?
The blue box shows the imported fluid field, but the places without flow fields are affected by the fluid drag.
The red particles are affected by the fluid drag.
Answers
-
Hi,
That's correct the assumption is that the field fills all the space. The particles pickup the closest point in the field using 8 points and inverse weighted distance method to calculate the vector values. So if the particles are outside the field they can still pickup the closest point/points.
You could modify this in the API as you have the particle and field positions, however its currently setup to assume particles are inside the field.
Regards
Stephen
0 -
Stephen Cole_21117 said:
Hi,
That's correct the assumption is that the field fills all the space. The particles pickup the closest point in the field using 8 points and inverse weighted distance method to calculate the vector values. So if the particles are outside the field they can still pickup the closest point/points.
You could modify this in the API as you have the particle and field positions, however its currently setup to assume particles are inside the field.
Regards
Stephen
Thank you very much for your reply.
Do you have any good suggestions on how to modify the API for this situation?
Because I am not very good at modifying API.
0 -
xixihaha said:
Thank you very much for your reply.
Do you have any good suggestions on how to modify the API for this situation?
Because I am not very good at modifying API.
Hi, one way to achieve the same goal would be to extend the flow field into the area where the particles are, you could have it as zero velocity although this does still apply a drag force.
With the API changes you have access to the particle position in the API, you could specify that, for example, particles below a certain Z position would not be included, e.g.
if (particle.position.z < 0.0) { return eSuccess; } else { //original code }
You can find more information on the API in the help and YouTube series:
Regards
Stephen
0 -
Stephen Cole_21117 said:
Hi, one way to achieve the same goal would be to extend the flow field into the area where the particles are, you could have it as zero velocity although this does still apply a drag force.
With the API changes you have access to the particle position in the API, you could specify that, for example, particles below a certain Z position would not be included, e.g.
if (particle.position.z < 0.0) { return eSuccess; } else { //original code }
You can find more information on the API in the help and YouTube series:
Regards
Stephen
"This is a good idea: Thank you very much for your reply."
0