Hi all,
I am working on creating multiple planes each a different potential on them and plotting the weighted field. I am currently planning on doing this by stacking multiple ComponentAnalyticFields that I created.
I am unsure on to do the stacking, if someone could help me out it would much appreciated.
I have some code below of what I am doing for the weighted field. I have two ComponentAnalyticFields created that I would like to stack(wField1 & wField2).
// Plot the weighting potential if requested.
constexpr bool plotWeightingField = true;
if (plotWeightingField) {
ViewField* wfieldView = new ViewField();
//wfieldView->SetComponent(&wField1);
wfieldView->SetComponent(&wField2);
wfieldView->SetArea(-0.005, 0, 0.005, 0.01);
wfieldView->PlotContourWeightingField("strip", "v");
}