Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
This month’s challenge is based on spin gravity and emphasizes creativity!
Spin gravity is a method of creating the sense of gravity in a low- or zero- gravity environment using rotational movement. During this circular motion, objects with mass feel a fictitious centrifugal force “pushing” them away from the center. This force can feel like the gravity we experience on Earth.
You can either design your own space station / vehicle or choose one (or more) from science fiction books, television shows, movies, video games, or other media. Then create a Mathcad worksheet to calculate the following:
Examples from popular media include:
In “real” science, O’Neill Cylinders were proposed by Professor Gerard K. O’Neill in 1974. Maybe you can design your own or a variation.
Note that if you create your worksheet in Mathcad Prime 11, you can use a custom unit system in your worksheet! This can be extremely helpful depending on how big you want your station or vehicle to be.
Bonus Advanced Input Controls Challenge
Incorporate Combo Boxes, Sliders, Check Boxes, Radio Buttons, or any other input controls to allow users to change a parameter to see how it affects other calculations.
Bonus Graphing Challenge
Use XY Plots, 3D Plots, Contour Plots, or Chart Components to depict the acceleration due to gravity as a function of one or more other parameters for a space station / vehicle.
Have fun with this!
Find the Mathcad Community Challenge Guidelines here!
I'm a little surprised that we're eleven days into May and there have been no posts!
Attached (in Express Prime 4) is a simple discussion of the challenges of spin gravity, disguised as a design for a small space station.:
Enjoy! Comment! Expand!
I decided to get in on the fun. Here is my worksheet in Mathcad Prime 11. This is a work in progress. I still need to throw in an optimization and take advantage of custom unit systems, especially for RPMs.
I adore your gravity / radius sliders and the motion sickness conditionally formatted text box!
I've updated my worksheet to take advantage of a couple Prime 11 enhancements:
I think you've made the first example I've seen out "in the wild" of making a different box for a Python scripted control. This is a best practice for a few reasons.
I agree that providing an alternative for a Python scripted component in case the user has not installed Python is a good idea - actually I would call it mandatory!
If Python isn't installed an appropriate error message should be thrown rather than just showing the state of the box when it was saved the lasts time because the current behavior could lead to erroneous conclusions.
Prime not saving all scripts of a scripted component is really bad behaviour.
I would almost call this a bug, or at least a very serious design error.
Instead of warning users, R&D should quickly go over it again and change the behavior of scripted components so that ALL scripts are saved, regardless of which scripting language is currently set as the active one.
In a next step a mechanism could be implemented that Prime autodetects if Python is installed and automatically switches over to the JScript (or even VBScript) code (if available) in case Python is not installed. That way having to create and maintain two separate boxes could be avoided.
I agree with everything you wrote, and I think it would be helpful for (convincing) R&D for someone to submit this as a feature request and have people vote it up.
Honestly, duplicating the scripted control was a "happy accident." I was just trying to see if I could do the same text box in Python that I had done in JScript. I hadn't even considered someone not having Python on their computer - despite downloading and installing it on my main computer just last week.
I'm glad to have stumbled upon a "best practice" nonetheless. 🤓
Having the spinning object turn red (even more red than your screenshot) is very fun!
Well, you're late... but your worksheet is cool, so I'll allow it anyway. 😀