Hi all, I've mixed a SOP solver with an FEM solver. I have four spheres and the SOP solver moves them towards a certain point, but I want the FEM solver to make them squish up against each other when they do, but currently, they just pop inside of each other.
I've tried upping the dopnetwork's sub-steps, but it doesn't seem to help for some reason
The ‘force’ with which the SOP solver will try to move the spheres towards the point is controlled by a parameter called ‘amp’ located in: AutoDopNetwork > sopsolver1 >foreach > calcs The target point is defined in there too.
that's because you are moving the points in SOP solver directly what you need to do inside of your SOP Solver is just introduce vector attribute named: force and let FEM solver to move the points accordingly
yes, force is pretty unified in H13 so it works for particles, FLIP, wires, cloth, FEM, RBD in earlier versions you could add some value to v for FLIP or use fexternal for cloth, VOP Force for RBDs… to control your sim besides the DOP Forces
transforming points directly is usually a bad idea since solver then needs to solve interpenetrations that you may cause that way which may be much more trickier(and many times too late) than letting the solver prevent interpenetration in the first place by solving the positions internally by integrating forces and velocities
That's very useful to know, thanks. Also, while you're here, I keep having issues with visualizing attributes. I want to know what the force is on each of my spheres. I open up the display options, add a custom variable with Name: force Label: force Attribute: FORCE
I activate it and it doesn't show up. I've always had issues with getting Houdini to show attributes in the viewport, but now it never, ever works.
Ah, that got it. Though I swear I've tried using lower case in the past. Very strange. So the all caps syntax is for using the attribute value in expressions or something? I've never really been clear on this Sorry if it's a daft question.
No all caps would only work if the attribute name was in all caps. You have to use the same casing as your attribute name. By convention, all caps are reserved for variable names.