Algorithms For Coupled Domain Mems Simulation