SuperpositionΒΆ

Type:section
Appearance:simple
Excludes:CartesianToFourierTransform, ConvertToPowerFlux, CreateReducedBasis, DensityIntegration, DipoleEmission, EvaluateReducedBasis, ExportFields, ExportGrid, FarField, FluxIntegration, FourierTransform, GridStatistics, IntegrationWeights, LayeredMediaSolver, ModeOverlap, MultipoleExpansion, OpticalImaging, PupilField, Radiation, ResonanceExpansion, ResonanceOverlap, ScatteringMatrix, SurfaceDensityIntegration

This post process creates a JCM fieldbag containing a single field. This field is the weighted superposition of several fieldbags (each of which may can contain more than one field themselves).

PostProcess {
  Superposition {
    OutputFileName = "./project_results/fieldbag_total.jcm"

    FieldBag {
      FieldBagPath = "./setup_1/project_results/fieldbag.jcm"
      Weights = 1.25
    }

    FieldBag {
      FieldBagPath = "./setup_2/project_results/fieldbag.jcm"
      Weights = [-1.25, 1.25]
    }

    FieldBag {
      FieldBagPath = "./setup_3/project_results/fieldbag.jcm"
      Weights = (1.0, 1.0)
    }

    Omega = 4.12e+15
  }
}