Itterating over vertically aligned nodes
Posted: 08 Sep 2021, 20:54
Hello,
I'm looking to loop over vertically aligned nodes for a structured quadrilateral mesh within a user defined subroutine. I'm able to do this successfully for a 1st order quadrilateral elements (404) and am interested in the feasibility of doing the same for 2nd order quadrilateral elements (408).
I need to loop over vertically aligned nodes to properly specify surface boundary conditions as part of an Elmer/Ice simulation. A nearly identical problem is addressed in the "SurfaceBoundaryEnthalpy.F90" file within "elmerfem/elmerice/Solvers" on the GitHub repository. Here's a link to the exact lines where the looping over vertically aligned nodes is done. I should highlight a notable difference between the solver linked above and my test case; the solver linked above is only intended to be used in 3D simulations while I am running my simulations in 2D (the x-z plane). That, in part, is the reason I'm writing my own subroutine, which I've attached for reference.
Also, is there any way to check the order of elements within a user defined subroutine? I'd like to throw an error when the subroutine is used on unsupported elements types.
Thank you for taking the time to look into this.
Best,
Andrew
I'm looking to loop over vertically aligned nodes for a structured quadrilateral mesh within a user defined subroutine. I'm able to do this successfully for a 1st order quadrilateral elements (404) and am interested in the feasibility of doing the same for 2nd order quadrilateral elements (408).
I need to loop over vertically aligned nodes to properly specify surface boundary conditions as part of an Elmer/Ice simulation. A nearly identical problem is addressed in the "SurfaceBoundaryEnthalpy.F90" file within "elmerfem/elmerice/Solvers" on the GitHub repository. Here's a link to the exact lines where the looping over vertically aligned nodes is done. I should highlight a notable difference between the solver linked above and my test case; the solver linked above is only intended to be used in 3D simulations while I am running my simulations in 2D (the x-z plane). That, in part, is the reason I'm writing my own subroutine, which I've attached for reference.
Also, is there any way to check the order of elements within a user defined subroutine? I'd like to throw an error when the subroutine is used on unsupported elements types.
Thank you for taking the time to look into this.
Best,
Andrew