Tekstiviesti: Modeling of photonic devices