[Meep-discuss] FIELD

2009-01-26 Thread Michal Martinů
Hello, please help me. I would like to start my Meep computing with initialized magnetic field and I do not know, how to do it. I do not understand this: http://ab-initio.mit.edu/wiki/index.php/Meep_field-function_examples I can translate Hx, Hy (intenzity of magnetic field) from static 2D

[Meep-discuss] Ответ: FIELD

2009-01-26 Thread Nizamov Shawkat
Hi! You are looking the wrong way. To initialize fields from some preset value you should use field.initialize_field() function. There are two examples on using this function in C++ under the tests subdirectory in meep source - cylindrical.cpp and one_dimensional.cpp. Don't know if it is also

[Meep-discuss] initialize fields

2009-01-26 Thread schmitte
Use something like: (define (my_Hmagx v3) Hx.. ) (define (my_Hmagy v3) Hy.. ) (define (my_Hmagz v3) Hz.. ) Hx.., Hy.., Hz.. are procedures calculating/reading the initial field values for each vector3 (x y z) position v3. Then: (init-fields)