Skip to content

Reply To: Compilation error

#7881
Ali Fauze
Participant

Following is my PrepareGeometry function

void prepareGeometry(SuperGeometry<T,3>& superGeometry, ThermalUnitConverter<T, NSDESCRIPTOR, TDESCRIPTOR> &converter, IndicatorF3D <T> &indicator, STLreader <T> &stlReader)
{
OstreamManager clout (cout, “prepareGeometry”);
clout << “Prepare Geometrry ..” << endl;

superGeometry.rename (0, 1, indicator);
superGeometry.rename (1, 2, stlReader);

superGeometry.clean ();
Vector<T, 3> origini = superGeometry.getStatistics().getMinPhysR(1);
//origin[1] += converter.getConversionFactorLength() / 2.;
//origin[2] += converter.getConversionFactorLength() / 2.;

Vector<T, 3> extendi = superGeometry.getStatistics().getMaxPhysR(1);
//extend[1] = extend[1] – origin[1] – converter.getConversionFactorLength()/2.;
//extend[2] = extend[2] – origin[2] – converter.getConversionFactorLength()/2.;
//IndicatorCuboid3D<T> inlet({-0.1, -0.1, 0.0}, {0.1,0.1,0.0});
extendi[0] = superGeometry.getStatistics().getMaxPhysR(1)[0];
extendi[1] = superGeometry.getStatistics().getMaxPhysR(1)[1];
extendi[2] = superGeometry.getStatistics().getMinPhysR(1)[2];

//IndicatorCuboid3D<T> outlet({-0.1, -0.1, 10.0}, {0.1, 0.1, 10.0});
Vector<T, 3> origino = superGeometry.getStatistics().getMinPhysR(1);
origino[2] = superGeometry.getStatistics().getMaxPhysR(1)[2];
Vector<T, 3> extendo = superGeometry.getStatistics().getMaxPhysR(1);

//IndicatorCuboid3D<T> heated_face({-0.1, -0.1, 0.0}, {-0.10, 0.1, 10.0});
Vector<T, 3> originh = superGeometry.getStatistics().getMinPhysR(1);
Vector<T, 3> extendh = superGeometry.getStatistics().getMaxPhysR(1);
extendh[0] = superGeometry.getStatistics().getMinPhysR(1)[0];

clout << “inlet origin ” << origini << “inlet extend” << extendi
<< “outlet origin” << origino << “outlet extend” << extendo
<< “heated face origin” << originh << “heated face extend” << extendh
<< endl;
IndicatorCuboid3D<T> inlet(extendi, origini);
superGeometry.rename(2, 3, 1, inlet);
IndicatorCuboid3D<T> outlet(extendo, origino);
superGeometry.rename(2, 4, 1, outlet);
IndicatorCuboid3D<T> heated_face(extendh, originh);
superGeometry.rename(2, 5, 1, heated_face);

superGeometry.clean ();
superGeometry.innerClean ();
superGeometry.checkForErrors ();

superGeometry.print ();
clout << “Prepare Geometry … OK” << endl;
}
I would like also to put a part of my output but i’am blocked.