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

Transient simulation CFX - BC setup

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By Jared1986
  • 2 Post By ghorrocks
  • 1 Post By Jared1986
  • 1 Post By urosgrivc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2017, 06:44
Default Transient simulation CFX - BC setup
  #1
New Member
 
Jarda Chlup
Join Date: Aug 2013
Posts: 21
Rep Power: 13
Jared1986 is on a distinguished road
Hello to everybody,
I'd like to simulate duty cycles of some device and I'd like to change load during simulation.

For example:

For first 4 seconds I'd like to set P1[W/m3] for next interval I'd like to set P2[W/m3]...... for capture of entire duty cycle

Does anybody know how to set BC for that or where? Because I could see that it's possible just set one value of load for entire transient analysis.

Thanks a lot
Svetlana likes this.
Jared1986 is offline   Reply With Quote

Old   June 9, 2017, 07:41
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Try:

Flux = if(mod(t,5[s])>4[s],P1,P2)

This function will apply a flux of P1 for 4s then P2 for 1s, then repeat the cycle forever.
Jared1986 and Svetlana like this.
ghorrocks is offline   Reply With Quote

Old   June 9, 2017, 07:52
Default
  #3
New Member
 
Jarda Chlup
Join Date: Aug 2013
Posts: 21
Rep Power: 13
Jared1986 is on a distinguished road
Thanks a lot Glenn, I will try it...
Svetlana likes this.
Jared1986 is offline   Reply With Quote

Old   June 14, 2017, 06:46
Default
  #4
New Member
 
Jarda Chlup
Join Date: Aug 2013
Posts: 21
Rep Power: 13
Jared1986 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Try:

Flux = if(mod(t,5[s])>4[s],P1,P2)

This function will apply a flux of P1 for 4s then P2 for 1s, then repeat the cycle forever.
Hello Glenn, I have one more question for that solution, that's clear for 2 loads, but if I have cycle, where I have 8 loads, which are based on measuring in real time. Is it also possible to use some function for that kind of case? Thanks a lot
Jared1986 is offline   Reply With Quote

Old   June 14, 2017, 07:33
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
CycleTime = mod(t,5[s])

And then use CycleTime in a 1D interpolation function or another CEL expression to give whatever function you like. The function will be repeated every 5s forever.
ghorrocks is offline   Reply With Quote

Old   June 14, 2017, 10:41
Default
  #6
New Member
 
Jarda Chlup
Join Date: Aug 2013
Posts: 21
Rep Power: 13
Jared1986 is on a distinguished road
I have this kind of cycle, so If I use expression below, I can set just 2 load not all 8 or more? I need repeat this cycle for 5 min so for that is CycleTime = mod(t,3000[s]), but how to integrate inside 8 loads? Sorry maybe its stupid, but it's not still clear for me. Thanks
Attached Images
File Type: png chart.png (15.6 KB, 16 views)
Jared1986 is offline   Reply With Quote

Old   June 14, 2017, 19:22
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
I can set just 2 load not all 8 or more?
I do not understand this question.

Can you explain what you are trying to do, and show a plot of what you intend to implement and where it is applied.
ghorrocks is offline   Reply With Quote

Old   June 15, 2017, 02:37
Default
  #8
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12
urosgrivc is on a distinguished road
Hi
If I understand corectly, (if not explain it more like glenn wrote)
as I can see duplicates of your values so It might be close but not exact depends on what you want.

I would do this via user function, if linear inerpolation of this value is enough.
Under user function you can set the argument unit to [s] and result unit to [W m^-3]
than you can either write the values by hand or import them (text file) vith this cycle repeating itselve up to 3000[s]

then under expression you just call this user function(t) and you can now use this expression as a time dependant walue for BC. (You are even able to plot this expresion(t) to check if it is working properly)

CFX will go in this table, look what time it is, chose or interpolate the walue and insert it as a BC.
I dont know if qubic interpolation is posible as i only use linear but this works nicely and is wery robust and easy to use works every time.

Google => (user function cfx)
Jared1986 likes this.
urosgrivc is offline   Reply With Quote

Old   June 15, 2017, 06:52
Default
  #9
New Member
 
Jarda Chlup
Join Date: Aug 2013
Posts: 21
Rep Power: 13
Jared1986 is on a distinguished road
I've already solved it. It was first time, when I set up user function, so understanding took quite more time than I expected, but I succeed finally. So thanks a lot for your time and patience... :]
Jared1986 is offline   Reply With Quote

Reply


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
Time average results in Transient CFX Simulation BalanceChen CFX 32 September 30, 2021 14:59
Transient Simulation in ANSYS CFX ylm054 CFX 7 April 25, 2016 21:05
Possibilities to influence Simulation in CFX biro CFX 37 November 26, 2014 06:02
Problems on H2/air CFX simulation xulixian OpenFOAM Running, Solving & CFD 2 April 14, 2009 16:00
transient simulation: natural convection problem? Basics CFX 3 September 25, 2002 10:42


All times are GMT -4. The time now is 14:37.