ATTENTIONThis 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 |
#1
|
|||
|
|||
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); Thanks. |
#2
|
|||
|
|||
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); Code:
openoutput(current); |
The Following User Says Thank You to Cameron Pluim For This Useful Post: | ||
mgiubilato (04-29-2013) |
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 |