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

Update Boundary Condition every 50 Iteration

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2024, 08:37
Default Update Boundary Condition every 50 Iteration
  #1
New Member
 
Join Date: Oct 2023
Posts: 1
Rep Power: 0
acakaacaka is on a distinguished road
Hi,

I want to simulate a centrifugal compressor for a turbocharger. In my simulation domain I have a CAVITY which I model as a mass flow outlet that depends on the mass flow of the INLET with the formula

MassFlowCavity = massFlow()@INLET*0.0004

in some cases this will lead to an oscillating mass flow at the INLET (and OUTLET) of the main flow. So I have the idea to only update the CAVITY mass flow outlet every 50 Iteration.

MassFlowCavity = if(mod(citern, 50) == 0, massFlow()@INLET*0.0004, *DONT CHANGE*)

I dont quite know what to put for *DONT CHANGE*.
acakaacaka is offline   Reply With Quote

Old   November 14, 2024, 17:12
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
There is no simple way of doing this in CFX.

If you have specified the mass flow rate through the device, then just specify the mass flow rate in the cavity directly (not as a function of another boundary).
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks 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
Windkessel boundary implementation Filippo70 OpenFOAM Programming & Development 0 November 7, 2024 12:04
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
UDF for Automatic Solution Initialization for previous case data file gartz89 Fluent UDF and Scheme Programming 6 March 30, 2020 08:38
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 11:20
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00


All times are GMT -4. The time now is 13:12.