HomerReid / scuff-em

A comprehensive and full-featured computational physics suite for boundary-element analysis of electromagnetic scattering, fluctuation-induced phenomena (Casimir forces and radiative heat transfer), nanophotonics, RF device engineering, electrostatics, and more. Includes a core library with C++ and python APIs as well as many command-line applications.
http://www.homerreid.com/scuff-em
GNU General Public License v2.0
125 stars 50 forks source link

.scuffgeo syntax #107

Closed Issachooi closed 7 years ago

Issachooi commented 7 years ago

Dear Homer Reid,

In the Scuff-em documentation (geometry file examples), some SURFACE statements actually end with ENDOBJECT statements. I'm wondering why is that.

For example the following:

**LATTICE VECTOR 2.4 0.0 0.0 VECTOR 0.0 2.4 0.0 ENDLATTICE

REGION UpperHalfSpace MATERIAL Vacuum REGION LowerHalfSpace MATERIAL Silicon REGION SphereInterior MATERIAL Gold

SURFACE Sphere MESHFILE Sphere.msh DISPLACED 1.2 1.2 1.85 REGIONS UpperHalfSpace SphereInterior ENDOBJECT

SURFACE Substrate MESHFILE Square.msh REGIONS UpperHalfSpace LowerHalfSpace ENDOBJECT**

Appreciate your answer. Thanks

Best Regards Chee Quen

HomerReid commented 7 years ago

Thanks for pointing this out. I have updated the documentation to fix this.

(The issue is actually harmless in practice because ENDOBJECT and ENDSURFACE are parsed as interchangeable keywords, but you're correct to point out that this makes for confusing documentation.)