|08 August 2003||#1|
Join Date: Aug 2002
simulating magnetic/electro motor
I´d like to simulate an electro-motor with some little real-world-physics.
As many of You will know, an electro-motor is made of an rotor and a stator. Normally, the stator has static magnet, while the rotor is made of copper-"cables" where the electricity passes thru (which also is a magnet, but you can regulate it´s magnetic force and so the engine is faster or has more power).
Now I would visualize this magnetic force between rotor and stator. But it need also real-world - behaviour.
So my first thought is to use active (rotor) / passiv (stator) rigid bodies for the real-world stuff, and particles for the magnetic force. My goal is, to get some new attributes (Volt, Ampere, Distance between rotor and stator, etc) on eg. an Locator which are connect to different attributes of the Act/Pass-RiBo with SetDrivenKeys. As the particle-simulation derivers and is dependend from the magnets, they are also connected to different attributes of the A/P-RiBo
Locator with new attr. ---> real-world simulation with A/P-RiBo ---> Particles for magnetic-force visualization
Any ideas to my thoughts ??
Does anyone have experience with real-world simulations in Maya
|08 August 2003||#2|
In your case I think you should forget active and passive rigid bodies because rotor and stator are not touching each other.
Your solution is in .mel script.
Add some new attributes to your rotor and stator objects and link them with some math formulas via .mel.
If I knew the formula for rotor speed by heart I could help you in writing that expression but unfortunatly I don't...but let's try improvising...
Let's asume that speed=U/I (I know it's not..it's resistance but let's asume)
You could add 2 float attributes to rotor object "volt" & "amper" and write a simple expression like:
This way you can add all the neccesery attributes to your objects and then calculate voltage,resistance,etc...and use it to drive the rotation speed of your rotor...
Hope this brings some ideas...
|Thread Closed share thread|