gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
24 return "Plugin(SphericalRaise) transforms the "
25 "coordinates of the elements in the view "
26 "`View' using the values associated with the "
27 "`TimeStep'-th time step.\n\n"
28 "Instead of elevating the nodes along the X, Y "
29 "and Z axes as with the View[`View'].RaiseX, "
30 "View[`View'].RaiseY and View[`View'].RaiseZ "
31 "options, the raise is applied along the radius "
32 "of a sphere centered at (`Xc', `Yc', `Zc').\n\n"
33 "To produce a standard radiation pattern, set "
34 "`Offset' to minus the radius of the sphere the "
35 "original data lives on.\n\n"
36 "If `View' < 0, the plugin is run on the current view.\n\n"
37 "Plugin(SphericalRaise) is executed in-place.";
68 Msg::Error(
"Invalid TimeStep (%d) in view", timeStep);
78 for(
int nod = 0; nod < data1->
getNumNodes(step, ent, ele); nod++)
79 data1->
tagNode(step, ent, ele, nod, 0);
90 for(
int nod = 0; nod < data1->
getNumNodes(step, ent, ele); nod++) {
92 int tag = data1->
getNode(step, ent, ele, nod, x, y,
z);
100 double coef = offset +
raise * val;
104 data1->
setNode(step, ent, ele, nod, x, y,
z);
virtual bool skipElement(int step, int ent, int ele, bool checkVisibility=false, int samplingRate=1)
std::string getHelp() const
virtual int getNumTimeSteps()=0
virtual bool isNodeData()
virtual int getNode(int step, int ent, int ele, int nod, double &x, double &y, double &z)
static void Error(const char *fmt,...)
virtual void setNode(int step, int ent, int ele, int nod, double x, double y, double z)
virtual int getNumEntities(int step=-1)
void setChanged(bool val)
virtual void tagNode(int step, int ent, int ele, int nod, int tag)
void getScalarValue(int step, int ent, int ele, int nod, double &val, int tensorRep=0, int forceNumComponents=0, int componentMap[9]=nullptr)
StringXNumber SphericalRaiseOptions_Number[]
PViewData * getData(bool useAdaptiveIfAvailable=false)
virtual int getNumNodes(int step, int ent, int ele)
GMSH_Plugin * GMSH_RegisterSphericalRaisePlugin()
virtual PView * getView(int index, PView *view)
virtual int getNumElements(int step=-1, int ent=-1)
double norme(double a[3])
virtual bool finalize(bool computeMinMax=true, const std::string &interpolationScheme="")
StringXNumber * getOption(int iopt)