Re: [Meep-discuss] Question about units in meep

2013-07-29 Thread Chuanren Wu
Hello Rui,

the only thing happens here is scaling the 4 Maxwell equations under the
condition that c0 = 1.
The solutions are not unique, you can choose the scaling method, which
is more suitable for your problem. (for example, you can let the
permittivity as the value in the real world, or keep the length in meter
or mm, or if you want to calculate a real current value, you can also
keep the current in SI unit).


regards


On 07/29/2013 01:33 AM, Rui La wrote:
 Hi meep users,
 
 I am new to meep and have some questions about units and sizes in the
 code of meep.
 
 I want to measure the transmission of a silicon plane with the wave of
 1000nm. The relationship between frequency and wavelength is
 wavelength=1/f. So I guess if I assume the 1 in my code equal to 150
 nm, the relative wavelength of the source should be 1000/150 = 6.67, so
 the f should be 1/6.67 = 0.15. Is my calculation correct? What if I set
 the 1 in my code as 300 nm, that means I need to change my frequency
 to 1/3.33=0.3. So will the two simulations have same result since I used
 the different frequency but simulate the same model? 
 
 Thanks,
 
 Rui
 
 
 ___
 meep-discuss mailing list
 meep-discuss@ab-initio.mit.edu
 http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
 




signature.asc
Description: OpenPGP digital signature
___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Re: [Meep-discuss] Compiling libMEEP with embedded C++ compiler

2013-06-08 Thread Chuanren Wu
Hi,

POSIX is enough.
Also Harminv does not need any dependency.
Do you have fftw and blas on that architecture?

The configurations also can be done manually with config.h
Maybe you need to change some pragmas and replace several IO operations.

I'v only compiled it with MS Visual Studio, some screenshots can be found in
http://www.stud.uni-karlsruhe.de/~uajid/MeepPort/
If you want to try native client it should be also possible.


On 08.06.2013 20:01, Fernando Carvalho wrote:
 I would like to compile it, using a custom compiler for a different
 architecture.
 Thus I need to compile all dependencies with this special architecture,
 which will only provide standard POSIX APIs.
 Would you mind, helping me find the flags for changing the compiler and
 removing dependencies on HDF5, LIBCTL and MPI?
 I'm going to need Harminv, as well, for calculating the quality factor
 of photonic crystals I'm optimizing.
 
 
 On Sat, Jun 8, 2013 at 12:56 PM, Wu Chuanren wuchuan...@gmail.com
 mailto:wuchuan...@gmail.com wrote:
 
 Hello,
 
 what do you mean without local system dependencies ?
 It is possible to compile it without hdf5, libctl and mpi (that is
 what i usually do).
 However you will still need blas/lapack and some printf stuff.
 
 Regards
 
 
 2013/6/8 Fernando Carvalho fernandocarvalhocoe...@gmail.com
 mailto:fernandocarvalhocoe...@gmail.com:
  Dear MEEP developers,
 
  I would like to compile libmeep with an embedded compiler to run
  applications in a web browser through Native Client, so I could
 make my
  application available to a broader audience.
  Since, I can rely on the default system libraries, I would like to
 ask here
  if someone have ever compiled libmeep without local system
 dependencies.
  I really, don't need MPI support, nor libctl; only a quick way to
 statically
  link my C++ main application to libmeep is enough to get it running.
 
  Many thanks in advance,
 
  --
  Fernando
 
  ___
  meep-discuss mailing list
  meep-discuss@ab-initio.mit.edu mailto:meep-discuss@ab-initio.mit.edu
  http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
 
 
 
 
 -- 
 Fernando




signature.asc
Description: OpenPGP digital signature
___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Re: [Meep-discuss] Compiling libMEEP with embedded C++ compiler

2013-06-08 Thread Chuanren Wu
There is almost no necessary dependency except blas and fftw.


I would like to show you the MEEP part, but the files are too big (
10MB), can not be shared by email.

If you do have POSIX system or better GNU tool chain for the cross
compiling, just compile fftw as well as blas/lapack at first and call
the configuration script of meep with parameters like

--without-hdf5 --without-libctl

and include some
--build  and/or --host
options for the cross compilation case. So it will get neither hdf5 nor
libctl dependencies. MPI is disabled by default. If you have Harminv
compiled before, harminv will be automatically detected by the script.

If there is no GNU tool chain, you have to configure manually (like the
Visual Studio case). Thanks to the developer of Meep, the code is
relative clean and understandable. Also the manually configuration is
obviously.


On 08.06.2013 22:10, Fernando Carvalho wrote:
 Would you mind sharing with me your full project folder?
 This could help me a lot understanding MEEP dependencies.
 
 
 On Sat, Jun 8, 2013 at 4:32 PM, Chuanren Wu wuchuan...@gmail.com
 mailto:wuchuan...@gmail.com wrote:
 
 Hi,
 
 POSIX is enough.
 Also Harminv does not need any dependency.
 Do you have fftw and blas on that architecture?
 
 The configurations also can be done manually with config.h
 Maybe you need to change some pragmas and replace several IO operations.
 
 I'v only compiled it with MS Visual Studio, some screenshots can be
 found in
 http://www.stud.uni-karlsruhe.de/~uajid/MeepPort/
 If you want to try native client it should be also possible.
 
 
 On 08.06.2013 20:01, Fernando Carvalho wrote:
  I would like to compile it, using a custom compiler for a different
  architecture.
  Thus I need to compile all dependencies with this special
 architecture,
  which will only provide standard POSIX APIs.
  Would you mind, helping me find the flags for changing the
 compiler and
  removing dependencies on HDF5, LIBCTL and MPI?
  I'm going to need Harminv, as well, for calculating the quality factor
  of photonic crystals I'm optimizing.
 
 
  On Sat, Jun 8, 2013 at 12:56 PM, Wu Chuanren wuchuan...@gmail.com
 mailto:wuchuan...@gmail.com
  mailto:wuchuan...@gmail.com mailto:wuchuan...@gmail.com wrote:
 
  Hello,
 
  what do you mean without local system dependencies ?
  It is possible to compile it without hdf5, libctl and mpi (that is
  what i usually do).
  However you will still need blas/lapack and some printf stuff.
 
  Regards
 
 
  2013/6/8 Fernando Carvalho fernandocarvalhocoe...@gmail.com
 mailto:fernandocarvalhocoe...@gmail.com
  mailto:fernandocarvalhocoe...@gmail.com
 mailto:fernandocarvalhocoe...@gmail.com:
   Dear MEEP developers,
  
   I would like to compile libmeep with an embedded compiler to run
   applications in a web browser through Native Client, so I could
  make my
   application available to a broader audience.
   Since, I can rely on the default system libraries, I would
 like to
  ask here
   if someone have ever compiled libmeep without local system
  dependencies.
   I really, don't need MPI support, nor libctl; only a quick
 way to
  statically
   link my C++ main application to libmeep is enough to get it
 running.
  
   Many thanks in advance,
  
   --
   Fernando
  
   ___
   meep-discuss mailing list
   meep-discuss@ab-initio.mit.edu
 mailto:meep-discuss@ab-initio.mit.edu
 mailto:meep-discuss@ab-initio.mit.edu
 mailto:meep-discuss@ab-initio.mit.edu
   http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
 
 
 
 
  --
  Fernando
 
 
 
 
 
 -- 
 Fernando




signature.asc
Description: OpenPGP digital signature
___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss