CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Creating journal file for gradually increasing pressure value

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2016, 22:26
Default Creating journal file for gradually increasing pressure value
  #1
Senior Member
 
sunilpatil's Avatar
 
sunil
Join Date: Jul 2012
Location: Bangalore
Posts: 179
Rep Power: 13
sunilpatil is on a distinguished road
Hello everyone,
I want to increase the pressure value in step as iteration progress. I tried this with recording journal file from GUI but it is not working for multiple cases so is there any easy way to increase the pressure value (any simple one line code). I am searching for some examples journal file but I m unable find can u people please provide me a link for example journal file.
Thank you
__________________
Regards,
Sunil
sunilpatil is offline   Reply With Quote

Old   March 30, 2016, 06:33
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 12
Bruno Machado is on a distinguished road
Quote:
Originally Posted by sunilpatil View Post
Hello everyone,
I want to increase the pressure value in step as iteration progress. I tried this with recording journal file from GUI but it is not working for multiple cases so is there any easy way to increase the pressure value (any simple one line code). I am searching for some examples journal file but I m unable find can u people please provide me a link for example journal file.
Thank you
why no using DEFINE_PROFILE macro for the pressure profile?
Bruno Machado is offline   Reply With Quote

Old   March 30, 2016, 09:45
Default
  #3
Senior Member
 
sunilpatil's Avatar
 
sunil
Join Date: Jul 2012
Location: Bangalore
Posts: 179
Rep Power: 13
sunilpatil is on a distinguished road
Hi Bruno,
Can u please send me any examples UDF for changing input value with iterations.
Thank you
__________________
Regards,
Sunil
sunilpatil is offline   Reply With Quote

Old   March 30, 2016, 10:59
Default
  #4
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 12
Bruno Machado is on a distinguished road
Quote:
Originally Posted by sunilpatil View Post
Hi Bruno,
Can u please send me any examples UDF for changing input value with iterations.
Thank you
You do not need to use a specific macro for the iteration. You can simply add a counter as a float and use it with the increment as you wish. This is the most common increment

counter += 1;

Since every time you start this simulation again the counter starts from 0, you can also read the value from the GUI, so you can set the initial value as you wish.
Bruno Machado 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
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
2.0.x on Mac OSX niklas OpenFOAM Installation 74 March 28, 2012 16:46
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 05:38.