CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

want to simulate water flow in cycles with ECL Expression!

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree4Likes
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks
  • 1 Post By mvoss
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2014, 00:15
Default want to simulate water flow in cycles with ECL Expression!
  #1
New Member
 
Quan Nguyen
Join Date: May 2014
Posts: 7
Rep Power: 11
warmboy24 is on a distinguished road
Hi everyone! I am using CFX-Pre to simulated heat transfer in plastic injection molds. I simulate water flow in a cycle with the Expression function in CFX-Pre as follows:



Now, I want to want to simulate water flow in cycles but I can not. I do not know how.

Anyone can help me?! please!! thank you very much!
warmboy24 is offline   Reply With Quote

Old   May 14, 2014, 06:42
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,690
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The expressions Temp30 and Temp80 are completely unnecessary. You just need a single simple function:

Tinlet = if(t>20[s],30[C],80[C])

This should return the same value as your function does (except at t=20[s]).

What do you mean by a cycle? The function you describe is just a change in inlet from 30C to 80C.
warmboy24 likes this.
ghorrocks is offline   Reply With Quote

Old   May 14, 2014, 20:01
Default
  #3
New Member
 
Quan Nguyen
Join Date: May 2014
Posts: 7
Rep Power: 11
warmboy24 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
The expressions Temp30 and Temp80 are completely unnecessary. You just need a single simple function:

Tinlet = if(t>20[s],30[C],80[C])

This should return the same value as your function does (except at t=20[s]).

What do you mean by a cycle? The function you describe is just a change in inlet from 30C to 80C.
Thank you!
My cycle is 40 seconds, in the first twenty seconds the temperature is 80 ° C, in the next twenty seconds the temperature is 30oC. I now want to change the temperature in several consecutive cycles. For example, in two cycles, from 1s to 20s temperature is 80oC, from 20s to 40s temperature is 30oC, from 40s to 60s returned to 80oC temperature, from 60s to 80s temperature is 30oC.

Now I want to simulate many cycles (eg 100 cycles), but I do not know how. Can I change the settings in CFX-Pre to do that? or I have to create an Expression to do it?
warmboy24 is offline   Reply With Quote

Old   May 14, 2014, 20:11
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,690
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Easy:

CyclePosition = mod(t,40[s])
Tinlet = if(CyclePosition<20[s],80[C],30[C])
warmboy24 likes this.
ghorrocks is offline   Reply With Quote

Old   May 14, 2014, 20:52
Default
  #5
New Member
 
Quan Nguyen
Join Date: May 2014
Posts: 7
Rep Power: 11
warmboy24 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Easy:

CyclePosition = mod(t,40[s])
Tinlet = if(CyclePosition<20[s],80[C],30[C])
Its Working! Thank You very much!
warmboy24 is offline   Reply With Quote

Old   June 3, 2014, 10:12
Default
  #6
New Member
 
Quan Nguyen
Join Date: May 2014
Posts: 7
Rep Power: 11
warmboy24 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Easy:

CyclePosition = mod(t,40[s])
Tinlet = if(CyclePosition<20[s],80[C],30[C])
Hello Ghorrocks! Can you help me again?!


I'm making a simulated blow hot air on the surface of an object, as shown below.



Now, I want to control airflow over time and in multiple cycles. in one cycle (40 s): in the first 5 seconds of hot air is blown into; in the next 35 seconds not blow.

For example, I simulated in two consecutive cycles. from 0s to 5s air is blown into; from 5s to 40s not blow; from 40s to 45s air is blown into; from 45s to 80s not blow.

Can I control it by Experssion? and how do I do that?

Thanks!
warmboy24 is offline   Reply With Quote

Old   June 5, 2014, 05:48
Default
  #7
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
use the if()-statement to control the temperature. since itīs not directly related to the massflow you can simply turn it on and off when there is no flow.
If there are not to many cycles... create an expression for every "peak" with the return values being "0" otherwise and in the end add up all the peakes like T_inlet=T1+T2+T3+T4... and use T_inlet @ inlet
warmboy24 likes this.
mvoss is offline   Reply With Quote

Old   June 6, 2014, 09:29
Default
  #8
New Member
 
Quan Nguyen
Join Date: May 2014
Posts: 7
Rep Power: 11
warmboy24 is on a distinguished road
Quote:
Originally Posted by mvoss View Post
use the if()-statement to control the temperature. since itīs not directly related to the massflow you can simply turn it on and off when there is no flow.
If there are not to many cycles... create an expression for every "peak" with the return values being "0" otherwise and in the end add up all the peakes like T_inlet=T1+T2+T3+T4... and use T_inlet @ inlet
I used this Expressions to controll massflow and It ran look well. But Im not really sure. What do you think about that?!



In 20s cycle.
warmboy24 is offline   Reply With Quote

Old   June 10, 2014, 07:42
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,690
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Your function is fine. It turns the flow on for 5s and off for 15s, and repeats this forever. I do not know why you would bother with lots of if statements when the function you have is simple, nice and will continue if you decide you need to run for more cycles.
warmboy24 likes this.
ghorrocks is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with two phase flow (air injected in water) miles_davis OpenFOAM 15 March 31, 2021 09:36
Mass imbalance problem in multiphase water and steam CFX case Antech CFX 1 October 26, 2020 04:03
For a single phase flow, is there any way to check water surface level? Tanjina FLUENT 0 February 23, 2014 22:56
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32


All times are GMT -4. The time now is 03:52.