81 double r =
m_config[
"r"].as<
double>();
82 double xc =
m_config[
"xc"].as<
double>();
83 double yc =
m_config[
"yc"].as<
double>();
84 double t1 = atan2(n1->m_y - yc, n1->m_x - xc);
85 double t2 = atan2(n2->m_y - yc, n2->m_x - xc);
89 if (t1 < -M_PI / 2.0 && t2 > 0.0)
93 if (t2 < -M_PI / 2.0 && t1 > 0.0)
98 dt = (t2 - t1) / (nq - 1);
99 dz = (n2->m_z - n1->m_z) / (nq - 1);
101 edge->m_edgeNodes.resize(nq - 2);
102 for (
int i = 1; i < nq - 1; ++i)
105 0, xc + r * cos(t1 + i * dt),
106 yc + r * sin(t1 + i * dt), n1->m_z + i * dz));
void v_GenerateEdgeNodes(NekMeshUtils::EdgeSharedPtr edge)
virtual ~ProcessCyl()
Destructor.
pair< ModuleType, string > ModuleKey
1D Evenly-spaced points using Lagrange polynomial
Represents a command-line configuration option.
boost::shared_ptr< Node > NodeSharedPtr
std::map< std::string, ConfigOption > m_config
List of configuration values.
boost::shared_ptr< Edge > EdgeSharedPtr
Shared pointer to an edge.
boost::shared_ptr< Mesh > MeshSharedPtr
Shared pointer to a mesh.
std::pair< ModuleType, std::string > ModuleKey
ModuleFactory & GetModuleFactory()
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.