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

How to update dynamic mesh in steady state simulations

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

Like Tree2Likes
  • 1 Post By Prikane
  • 1 Post By Prikane

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2016, 05:01
Default How to update dynamic mesh in steady state simulations
  #1
New Member
 
Prikane
Join Date: Mar 2016
Posts: 28
Rep Power: 10
Prikane is on a distinguished road
Dear colleagues,

Earlier I worked with transient analysis and I know that in transient analysis, dynamic mesh is updated at the beginning of every time step.

I am now doing steady state analysis, and I want to update my dynamic mesh after every 25 iterations. Can someone tell me how to do it?

Thanks in advance,

Prikane
Prikane is offline   Reply With Quote

Old   September 1, 2016, 07:48
Default
  #2
Senior Member
 
duri
Join Date: May 2010
Posts: 245
Rep Power: 17
duri is on a distinguished road
Could you able to run dynamic mesh with steady state? This has no meaning because of local time stepping. What problem are you solving?
duri is offline   Reply With Quote

Old   September 1, 2016, 08:11
Default
  #3
New Member
 
Prikane
Join Date: Mar 2016
Posts: 28
Rep Power: 10
Prikane is on a distinguished road
Dear friend, thanks for answering.

I was wondering the same, is it possible, but I have found the following on the internet:

"You can use dynamic meshes for steady-state applications as well as for transient applications."

Source: https://www.sharcnet.ca/Software/Flu...ug/node447.htm

I was doing transient analysis of some analysis (in which force is acting on one surface and it needs to move), and I now want to do the same analysis but in the steady state conditions. I have also found, that when using dynamic mesh in steady state, you can use one option called "steady-pseudo-time-control", but I do not know how to properly use it.

Prikane
Prikane is offline   Reply With Quote

Old   September 1, 2016, 10:44
Default
  #4
Senior Member
 
duri
Join Date: May 2010
Posts: 245
Rep Power: 17
duri is on a distinguished road
Pseudo transient is like unsteady. The iteration actually mean the time step. When solution is stopped all cells would be at same time level. This makes sense. But from the manual it appears mesh need to be updated after each steady state convergence manually. Also geometry trajectory need to be provided by user based on dtime=1s. This means you need to solve for steady state and compute the next position and update mesh. Again solve for steady state. There is noway mesh is updated like a transient solution.
duri is offline   Reply With Quote

Old   September 1, 2016, 13:19
Default
  #5
New Member
 
Prikane
Join Date: Mar 2016
Posts: 28
Rep Power: 10
Prikane is on a distinguished road
Thank you for your help mate. So if I understood you correctly, the solution algorithm should be like this.

1. Set up steady state analysis (without UDF for dynamic mesh) and wait for convergence...

2. Hook dynamic mesh (in which I will specify conditions for mesh to move) and wait for convergence again...

3. Then change parameters in my UDF for dynamic mesh, hook it again and wait for convergence again...

And then repeat this procedure until I get results that I want...

Is there any possibility to automate this procedure? With using journal files or something like that....

I need to say that in my UDF for dynamic mesh, I need to set that 50 000 N of force is acting on one surface. But I need to slowly raise that force from 0 N to 50 000 N in order to avoid instabilities in the main equation, which calculates nodes coordinates after certain amount of force is applied on the surface. In the transient analysis, it was not hard thing to do, because UDF for dynamic mesh is applied on the beginning of every new step and the procedure of slowly rising force from 0 to 50 000 N can be automated.

But if I need to manually change force in UDF every time when convergence is reached, I will need to do that for a really long period of time...
shaheen wahab likes this.
Prikane is offline   Reply With Quote

Old   September 1, 2016, 13:38
Default
  #6
Senior Member
 
duri
Join Date: May 2010
Posts: 245
Rep Power: 17
duri is on a distinguished road
Yes that is what I understood from manual. I am not sure whether to hook udf initially or at end of each convergence. This can be automated as batch process in command mode using journal file.
duri is offline   Reply With Quote

Old   September 1, 2016, 16:27
Default
  #7
New Member
 
Prikane
Join Date: Mar 2016
Posts: 28
Rep Power: 10
Prikane is on a distinguished road
Thank you duri for all your replies. I am mechanical engineer, so I am not the most skilled with programming I need to ask you one more time.

You are absolutely sure that I can change my UDF for dynamic mesh after I get convergence with journal file? That includes the following steps:

1. Run steady state simulation
2. After convergence, hook UDF for dynamic mesh
3. Wait for convergence, then unload UDF for dynamic mesh, delete libudf folder from Fluent folder, change existing UDF for dynamic mesh that is in Fluent folder (that means to increase previous value of force), then again hook it with Ansys and activate dynamic mesh options
4. Then continue simulations and do it again after next convergence

If all these steps can be automated, I need to say that I have my answer and that I wasted a lot of my time so far....
shaheen wahab likes this.
Prikane is offline   Reply With Quote

Old   September 2, 2016, 05:39
Default
  #8
Senior Member
 
duri
Join Date: May 2010
Posts: 245
Rep Power: 17
duri is on a distinguished road
Try and learn there is no waste of time in doing mistakes.
duri is offline   Reply With Quote

Old   September 2, 2016, 06:56
Default
  #9
New Member
 
Prikane
Join Date: Mar 2016
Posts: 28
Rep Power: 10
Prikane is on a distinguished road
Thank you duri for your help. I will try to write journal file and we will see how it will go...

All the best.

Prikane
Prikane is offline   Reply With Quote

Old   October 4, 2018, 06:36
Default
  #10
New Member
 
Shaheen Akhtar Wahab
Join Date: Aug 2018
Location: Germany/Belgium
Posts: 6
Rep Power: 8
shaheen wahab is on a distinguished road
Hello Prikane,
I am doing something similar as you have stated. Could you please tell me how you wrote your Journal file?
I have a steady state case with a UDF (that reads a csv file and adjusts the nodes) and then I need a Journal file to update the mesh and so on, on a repetitive basis.
Thank you
With regards
Shaheen
shaheen wahab is offline   Reply With Quote

Reply

Tags
dynamic mesh;, steady state solutionn

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
Dynamic Mesh Problem. Tom Clark FLUENT 10 June 21, 2021 05:27
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Solver for transonic flow? Martin Hegedus OpenFOAM Running, Solving & CFD 22 December 16, 2015 05:59
Dynamic mesh update problem. David FLUENT 3 March 15, 2012 06:02
What will be the best dynamic mesh update method for an oscillating airfoil? ivanbuz FLUENT 0 March 15, 2010 19:39


All times are GMT -4. The time now is 18:40.