ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
FAQ Downloads Calendar Search Mark Forums Read

Q&A Using Flexsim and building models

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2015
Zulay Sarmiento's Avatar
Zulay Sarmiento Zulay Sarmiento is offline
Flexsim User
 
Join Date: Mar 2014
Location: Barranquilla, Colombia
Posts: 9
Downloads: 1
Uploads: 0
Thanks: 9
Thanked 3 Times in 2 Posts
Rep Power: 0
Zulay Sarmiento is on a distinguished road
Default Network node MTBF

Hello everyone,
i have a question, i am modeling a distribution network, i want a node to change its connection type on break down, this is the thing, i have a tool that controls the MTBF for a set of networknodes, and i want that when they start the failure time, they change its connection tipe to "non_pasing" for an specific path, for example: "To NN3"
But i want that this thing happens for a mtbf.
Thanks for helpping
Greetings
Attached Thumbnails
Click image for larger version

Name:	paraelforo.jpg
Views:	338
Size:	210.9 KB
ID:	2857  
Reply With Quote
  #2  
Old 05-29-2015
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 637
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

Hello Zulay,

passing and non-passing is set under the node connectionsout of the network node in the model tree. Under that node you find the connections to the other network nodes. The passing is controlled in the subnode connectionType by its number values:1 = no connection; 2 = passing; 3 = non-passing.
Another approach for "no connection" is the command closenodeedge(...). The color of the direction arrow is orange instead of red and it may behave a bit different.
Important is then the update of the Network System by the command optimizenetwork().
In an example model I got a strange behaviour when an operator get into the state blocked while he tries to go into offset traveling for delivering an item. The operator stays in the block state and freezes. To prevent this I varied the time of the MTTR a bit.

Here an example code for the Down Function:
Code:
/**Custom Code - Changing Network Connection Type*/
// definition: names of constant values
#define CONNECTIONTYPE 3
#define no_connection 1
#define passing 2
#define non_passing 3

treenode current = ownerobject(c);
treenode downobject = parnode(1);
int state = parval(2);
double downtime = parval(3);
treenode membercoupling = parnode(4);
setnodenum(rank(last(connectionsout(downobject)),CONNECTIONTYPE),non_passing);
// equal: setnodenum(rank(last(connectionsout(downobject)),3),3);
optimizenetwork();
return 0;
I change in this code the last connection to another network node in the list of the network nodes.
The connection type is reset to passing (num = 2) again in the Resume Function.

Jörg
Reply With Quote
The Following 3 Users Say Thank You to Jörg Vogel For This Useful Post:
arunkrmahadeva (05-29-2015), sagar bolisetti (05-30-2015), Zulay Sarmiento (08-16-2015)
Reply

Tags
connection type, mtbf, networknode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set dynamicaly closing node edge in a network node Preethi Sivaramakrishnan Tips and Tricks 8 06-27-2013 01:35 PM
Network node error Lucie Lerivrey Q&A 1 04-08-2013 09:50 AM
Network node TreeView shafizad Q&A 5 08-25-2010 04:33 AM
How to color network node Nico Zahn Q&A 5 05-25-2010 07:04 AM
Release from Network Node Gavin Douglas Q&A 2 06-12-2008 12:39 PM


All times are GMT -6. The time now is 05:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.