![]() ![]() (A) CoI frequency (B) ESS output active power.Īs it can be seen in Fig. Trajectories of the IEEE 39-bus system with different VSGs following the generator Gen1 outage. In the third scenario, the SG at Gen5 is replaced with a VSG with all other generators unchanged.įig. In the second scenario, the SG at Gen5 is instead replaced with an idealized SG, labeled SG2, with a very fast TG time constant of 0.1 s. In the first scenario, all generators are conventional synchronous machines, labeled SG1 with TG time constant of 5 s. The virtual impedance of the VSG is set equal to the SG stator impedance. The inertia values of the VSG and SG are the same. Since the VSG only applies to primary control, auxiliary and secondary controls of the SG, including power system stabilizers and secondary frequency control, are removed. The VSG voltage regulation gain is set equal to the AVR gain of the SG. The VSG droop gain is set equal to the TG gain of the SG. ![]() For the comparison, the control parameters are set as follows: The VSG replaces the generator located at bus 34, that is, Gen5. In this configuration, the whole WECS can be seen as an SG, where all the power goes through the swing equation, while in the configuration of the previous section, only the power from ESS goes through the swing equation. canActivateChild guards the child routes of a route that is using canActivateChild property.The VSG control is applied to the grid-side converter of the system, while the storage-side DC-DC converter is used to regulate the DC bus voltage and the turbine-side converter maintains its original MPPT function. Find the declaration of CanActivate interface from Angular doc. It is used to force user to login into application before navigating to the route. Let us understand how to use CanActivate and CanActivateChild route guards.ġ. It is possible that those links accessible to ADMIN role, will be not be allowed to USER role. It is used to decide link access on the basis of authorization. CanActivateChild decides whether we can navigate to child routes or not. It is used to redirect to login page to require authentication. The CanActivate decides whether we can navigate to a route or not. In this article we will discuss CanActivate and CanActivateChild. To achieve route guards, Angular provides following interfaces that are contained in package. If there is no route guard then anyone can access any link but using route guard we restrict the access of links. For example in login authentication based application, a user has to login first to enter into the application. Guarding routes means whether we can visit the route or not. Now find the complete example to create our route guards application step-by-step. In our application we have some routes that are only accessible to the user with ADMIN role and not for other roles. Once the user is logged-in, user will be redirected to already saved route. When we try to access any protected route, the current routes will be saved for future use to redirect here and we will be redirected to login page. We have a dashboard layout route and its children routes and they are protected by CanActivate and CanActivateChild. ![]() In our demo application user is authenticated by entering username/password using login page. Angular Route interface provides canActivate and canActivateChild properties to configure service class. To use route guards in our application, we need to create a service and implement these interfaces and define their methods. The CanActivate is used for authentication and CanActivateChild is used for authorization. The CanActivate and CanActivateChild are interfaces and have methods canActivate() and canActivateChild() respectively. The role of Angular route guard comes into the picture when authentication and authorization is required to navigate a route. AngularThis page will walk through Angular CanActivate and CanActivateChild route guards example. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |