Mathematical tools for electromagnetic modeling under realistic assumptions