-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Create square duct mesh #31406 #32289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
modules/subchannel/doc/content/source/meshgenerators/SCMQuadDuctMeshGenerator.md
Outdated
Show resolved
Hide resolved
modules/subchannel/doc/content/source/meshgenerators/SCMQuadDuctMeshGenerator.md
Outdated
Show resolved
Hide resolved
modules/subchannel/src/meshgenerators/SCMQuadDuctMeshGenerator.C
Outdated
Show resolved
Hide resolved
modules/subchannel/src/meshgenerators/SCMQuadDuctMeshGenerator.C
Outdated
Show resolved
Hide resolved
modules/subchannel/src/meshgenerators/SCMQuadDuctMeshGenerator.C
Outdated
Show resolved
Hide resolved
modules/subchannel/src/meshgenerators/SCMQuadDuctMeshGenerator.C
Outdated
Show resolved
Hide resolved
modules/subchannel/src/meshgenerators/SCMQuadDuctMeshGenerator.C
Outdated
Show resolved
Hide resolved
|
Job Documentation, step Docs: sync website on 6bc317e wanted to post the following: View the site here This comment will be updated on new commits. |
|
Job Coverage, step Generate coverage on 6bc317e wanted to post the following: Framework coverage
Modules coverageSubchannel
Full coverage reportsReports
This comment will be updated on new commits. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
878e734 to
cf8f64d
Compare
modules/subchannel/test/tests/mesh/quad_subchannel_duct_mesh/tests
Outdated
Show resolved
Hide resolved
modules/subchannel/doc/content/source/meshgenerators/SCMQuadDuctMeshGenerator.md
Outdated
Show resolved
Hide resolved
a35b4f5 to
2817724
Compare
|
Job Test, step Results summary on 6bc317e wanted to post the following: Framework test summaryCompared against e4407b3 in job civet.inl.gov/job/3542080. No change Modules test summaryCompared against e4407b3 in job civet.inl.gov/job/3542080. Added tests
Run time changes
|
| * Function that returns the vector of the duct nodes. | ||
| * | ||
| * Over-writing to avoid abstract template definition in this class | ||
| * NOTE: must match base-class signature exactly (returns by value). | ||
| */ | ||
| ///@{ | ||
| virtual Node * getDuctNodeFromChannel(Node *) override { return nullptr; } | ||
| virtual Node * getChannelNodeFromDuct(Node *) override { return nullptr; } | ||
| virtual const std::vector<Node *> getDuctNodes() const override { return std::vector<Node *>(); } | ||
| ///@} | ||
| const std::vector<Node *> getDuctNodes() const override { return _duct_nodes; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Function that returns the vector of the duct nodes. | |
| * | |
| * Over-writing to avoid abstract template definition in this class | |
| * NOTE: must match base-class signature exactly (returns by value). | |
| */ | |
| ///@{ | |
| virtual Node * getDuctNodeFromChannel(Node *) override { return nullptr; } | |
| virtual Node * getChannelNodeFromDuct(Node *) override { return nullptr; } | |
| virtual const std::vector<Node *> getDuctNodes() const override { return std::vector<Node *>(); } | |
| ///@} | |
| const std::vector<Node *> getDuctNodes() const override { return _duct_nodes; } | |
| * Function that returns the vector of the duct nodes. | |
| */ | |
| const std::vector<Node *> & getDuctNodes() const override { return _duct_nodes; } |
a reference is likely enough and prevents the copy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you ll need to fix the base class and other derived classes since this is virtual
| Node * | ||
| QuadSubChannelMesh::getDuctNodeFromChannel(Node * channel_node) const | ||
| { | ||
| auto it = _chan_to_duct_node_map.find(channel_node); | ||
| return (it == _chan_to_duct_node_map.end()) ? nullptr : it->second; | ||
| } | ||
|
|
||
| Node * | ||
| QuadSubChannelMesh::getChannelNodeFromDuct(Node * duct_node) const | ||
| { | ||
| auto it = _duct_node_to_chan_map.find(duct_node); | ||
| return (it == _duct_node_to_chan_map.end()) ? nullptr : it->second; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are exactly the same in the TriSubChannelMesh
why are they not defined in the parent class?
same for other routines most likely
| InputParameters params = MeshGenerator::validParams(); | ||
| params.addClassDescription("Creates a mesh of 2D duct cells around a square-lattice subassembly"); | ||
| params.addRequiredParam<MeshGeneratorName>("input", "The corresponding subchannel mesh"); | ||
| params.addParam<unsigned int>("block_id", 2, "Domain Index"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| params.addParam<unsigned int>("block_id", 2, "Domain Index"); | |
| params.addParam<unsigned int>("block_id", 2, "Subdomain id for the duct mesh cells"); |
| "built a duct.[-]"); | ||
| params.addRangeCheckedParam<unsigned int>( | ||
| "ny", | ||
| "ny > 1", | ||
| "Number of channels in the y direction for the subchannel assembly. Must be more than 1 to " | ||
| "built a duct.[-]"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "built a duct.[-]"); | |
| params.addRangeCheckedParam<unsigned int>( | |
| "ny", | |
| "ny > 1", | |
| "Number of channels in the y direction for the subchannel assembly. Must be more than 1 to " | |
| "built a duct.[-]"); | |
| "built a duct [-]"); | |
| params.addRangeCheckedParam<unsigned int>( | |
| "ny", | |
| "ny > 1", | |
| "Number of channels in the y direction for the subchannel assembly. Must be more than 1 to " | |
| "built a duct [-]"); |
|
|
||
| This mesh generator creates the mesh were the variables associated with the duct live. | ||
| This mesh generator creates the mesh (with Quad4 elements) where the variables associated with the duct live. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The subdomain name used for the duct will match the name of this mesh generator. | |
same for the other one
This PR resolves issue #31406