algorithmic modeling for Rhino
Hello world,
this is perhaps a broad question, but nonetheless I'd be extremely grateful of any help or pointers.
For an arbitrarily slow/big K2 simulation with some variable input parameter (see file attached), I'd like to automate a downstream action (in my case: push a button and store some data) when, and only when, K2 has successfully converged. Once the convergence and action have been completed, I'd like to tell the input variable to change.
As the power of K2 grows, so too does its potential for producing valuable analytical results. I'm basically trying to find a way to control the simulation and export results for routine (and big) calculations.
In appreciation,
Greg
Tags:
The attached seems to work in the context of your definition. Although updating/changing goal values probably will not work with scripted goals though (at least not just yet :)
Hello!
So I've been able to make some decent progress with the file that Anders shared last.
I now have a pretty cool and versatile custom script which I wanted to share with the community - I'm sure others will be able to benefit from what's in here. I'm quite pleased with it! Here's a brief description:
For a K2 simulation, this solver iterates to a solution for a given VSum threshold and subiteration count.
Once converged, downstream results are logged and an upstream input slider is automatically updated to progress one increment (e.g. a subsequent load case) and the routine repeats.
This facilitates autonomous simulation and result logging using K2, which I think is pretty awesome!
Anders Holden and Max Marschall did all the hard work. I just had the idea and glued it together.
Regards,
Greg
Interestingly, the custom script can't seem to accept the FloorPlane goal. Object reference issues (?). See attached.
As far as I can tell, it doesn't have an issue with the other goals, just FloorPlane.
Any ideas anyone?
Regards,
Greg
Since custom goals are not compatible with a custom K2 solver, an alternative to check whether K2 is still solving would be to passively read downstream output, as per the attached example.
This method works and is not sensitive to wider custom scripting issues. Thanks again to Anders for the heads up.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by