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
Downloads

Q&A Using Flexsim and building models

  #1  
Old 04-22-2013
Abdul Mirza Abdul Mirza is offline
Flexsim User
 
Join Date: Jul 2012
Posts: 13
Downloads: 0
Uploads: 0
Thanks: 5
Thanked 1 Time in 1 Post
Rep Power: 94
Abdul Mirza is on a distinguished road
Default How to add a processing time to a Fluid Object?

Hi All,

I am working with fluid objects and I have come across this scenario:

1. fluid moves from FuildGenerator to FuildTanks. ( inital condition: FluidTank output port closed)
2. It fills the FluidTank to a certain level (High Mark)
3. once filled the input port for FluidTank is closed.
4. there is some chemical processing performed which takes certain processing time. Once processed all the output port is opened and fluid is flushed out.
5. Input port is opened and output port is closed.
6. repeat step 1

I could not find a way to give processing time to the FluidTank object as there is no built in time.

I was wondering if I could give a command at High Mark trigger that tells the compiler to wait for certain duration of time and execute the following line of code. What I mean is:

Code:
/** \nAction: */ /**/closeinput(current)/**closing reservoir port*/;
wait 30; /**processing time in minutes*/
openoutput(current);
Any advice is appriciated..

Thanks.
  #2  
Old 04-23-2013
Cameron Pluim Cameron Pluim is offline
Steelcase, Inc.
 
Join Date: Apr 2012
Location: MI
Posts: 30
Downloads: 27
Uploads: 11
Thanks: 5
Thanked 34 Times in 20 Posts
Rep Power: 120
Cameron Pluim will become famous soon enoughCameron Pluim will become famous soon enough
Default

Abdul,

The functionality you are looking for can be simulated using a delayed message similar to the following:
On High Mark Trigger
Code:
closeinput(current);
senddelayedmessage(current,30,current);
On Message Trigger
Code:
openoutput(current);
Just remember that the time in the delayed message is model time units, so if your model is built in seconds you will need to multiply by 60 for minutes.
The Following User Says Thank You to Cameron Pluim For This Useful Post:
mgiubilato (04-29-2013)
  #3  
Old 04-23-2013
Abdul Mirza Abdul Mirza is offline
Flexsim User
 
Join Date: Jul 2012
Posts: 13
Downloads: 0
Uploads: 0
Thanks: 5
Thanked 1 Time in 1 Post
Rep Power: 94
Abdul Mirza is on a distinguished road
Default

Thanks Cameron.

Works Like a Charm!!


Thread Thread Starter Forum Replies Last Post
problem on processing time Jack Lai Flexsim Student Forum 2 12-01-2011 02:57 AM
Best way to have fluid processing time? JMEngelhart Q&A 1 10-25-2011 08:58 AM
Wrong Fluid Object Tutorial Sebastian Hemmann Q&A 2 08-30-2011 09:51 AM
Fluid Object - Controlling Order of Operation Bennett Foster Gripes and Goodies 3 07-22-2011 08:43 AM
Simulati report for model with Fluid object David Chan Q&A 1 07-26-2008 03:42 AM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.