You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Apply a boundary condition to the top side of the domain. The arguments define whether or not the nodes are fixed in the _x_ and _y_ directions.
582
575
pubfnwith_top_bc(&mutself,x:bool,y:bool) -> Self{
583
576
for idx in0..=self.nelx{
584
-
for jdx in0..=self.nely{
585
-
if jdx == 0{
586
-
self.boundary[(idx, jdx)] = (x, y);
587
-
}
588
-
}
577
+
self.boundary[(idx,0)] = (x, y);
589
578
}
590
579
self.clone()
591
580
}
592
581
593
582
/// Apply a boundary condition to the bottom side of the domain. The arguments define whether or not the nodes are fixed in the _x_ and _y_ directions.
0 commit comments