|
[Sponsors] |
June 9, 2017, 06:44 |
Transient simulation CFX - BC setup
|
#1 |
New Member
Jarda Chlup
Join Date: Aug 2013
Posts: 21
Rep Power: 13 |
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 |
|
June 9, 2017, 07:41 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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. |
|
June 9, 2017, 07:52 |
|
#3 |
New Member
Jarda Chlup
Join Date: Aug 2013
Posts: 21
Rep Power: 13 |
Thanks a lot Glenn, I will try it...
|
|
June 14, 2017, 06:46 |
|
#4 |
New Member
Jarda Chlup
Join Date: Aug 2013
Posts: 21
Rep Power: 13 |
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
|
|
June 14, 2017, 07:33 |
|
#5 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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. |
|
June 14, 2017, 10:41 |
|
#6 |
New Member
Jarda Chlup
Join Date: Aug 2013
Posts: 21
Rep Power: 13 |
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
|
|
June 14, 2017, 19:22 |
|
#7 | |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Quote:
Can you explain what you are trying to do, and show a plot of what you intend to implement and where it is applied. |
||
June 15, 2017, 02:37 |
|
#8 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11 |
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) |
|
June 15, 2017, 06:52 |
|
#9 |
New Member
Jarda Chlup
Join Date: Aug 2013
Posts: 21
Rep Power: 13 |
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... :]
|
|
|
|
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 |