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

CFX transient solution not giving trn files

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

Like Tree17Likes
  • 1 Post By Dale MC
  • 1 Post By ghorrocks
  • 1 Post By Dale MC
  • 1 Post By ghorrocks
  • 1 Post By Dale MC
  • 1 Post By AtoHM
  • 1 Post By karachun
  • 1 Post By Dale MC
  • 1 Post By Dale MC
  • 1 Post By ghorrocks
  • 1 Post By Dale MC
  • 1 Post By ghorrocks
  • 1 Post By Dale MC
  • 1 Post By ghorrocks
  • 1 Post By Dale MC
  • 2 Post By Dale MC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2019, 16:02
Default CFX transient solution not giving trn files
  #1
New Member
 
Dale
Join Date: Mar 2009
Posts: 15
Rep Power: 17
Dale MC is on a distinguished road
I am trying to get multiple trn results files for a transient solution but only get 1 res file. Also the solution does not iterate all the timesteps. My geometry is a micro channel with an injection point and am putting a cyclic pulse flow in for the injection with this expression 2*sin(2*3.1416*4/.05) [m s^-1]. I followed tutorial 6 but without setting up the smoke concentration plot. My total time is 4s and my timestep is .05s. I am using a selected variable of Velocity and I have tried almost every trn results option for frequency. the solution solves the SS then does the transient but only gives one .res file only doing 1 timestep. I have attached a picture of when it finishes as well as a picture of the settings for trn results and the ccl file which is zipped. If anyone can give advice it will be greatly appreciated.
Thanks
Attached Images
File Type: jpg CFX solver finished.jpg (79.3 KB, 24 views)
File Type: jpg trn Results settings.jpg (90.2 KB, 26 views)
Attached Files
File Type: zip channel with symmetry.zip (2.9 KB, 3 views)
Svetlana likes this.
Dale MC is offline   Reply With Quote

Old   July 19, 2019, 21:47
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,861
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
* You say this is a micro channel but you are using a turbulence model. This is probably incorrect. You should check the Reynolds number of your flow, as it is probably laminar.
* in your transient run you are using backup files. You probably want transient results files, not backup files. Transient results files will give you TRN files.
Svetlana likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 19, 2019, 22:23
Default
  #3
New Member
 
Dale
Join Date: Mar 2009
Posts: 15
Rep Power: 17
Dale MC is on a distinguished road
I thought about it being laminar flow but the injection creates turbulence in the channel which is why I am examining it. That is why I was using turbulent. Do you think laminar would work.
Also are you saying do not set backup in order to get trn files? I set the trn results but nothing happens. I don't get trn files just .res file
Svetlana likes this.
Dale MC is offline   Reply With Quote

Old   July 20, 2019, 08:21
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,861
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Make sure you understand the difference between turbulence and an unsteady flow. An unsteady flow can be laminar. So just because you are squirting some fluid in from the side does not make the flow turbulent. You need to work out the Reynolds Number and determine if it is laminar or turbulent from that. Most Micro-fluidics are purely laminar, so I would be surprised if your flow is turbulent.

Yes, do not use backup files. Use transient results files instead. You will get a trn file whenever you define a transient results file to be written.
Svetlana likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 20, 2019, 08:21
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,861
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Make sure you understand the difference between turbulence and an unsteady flow. An unsteady flow can be laminar. So just because you are squirting some fluid in from the side does not make the flow turbulent. You need to work out the Reynolds Number and determine if it is laminar or turbulent from that. Most Micro-fluidics are purely laminar, so I would be surprised if your flow is turbulent.

Yes, do not use backup files. Use transient results files instead. You will get a trn file whenever you define a transient results file to be written.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 21, 2019, 23:21
Default
  #6
New Member
 
Dale
Join Date: Mar 2009
Posts: 15
Rep Power: 17
Dale MC is on a distinguished road
The flow is technically laminar the Re is less than 1000. My thought was that because of the rotation in the flow I should use the turbulent model. I have attached 3 pictures. One of the contours, one of the vectors and one with the timestep selector. As you can see there is rotation in the flow but I am not sure if that means I should use the turbulent model. What do you think? I know the flow is laminar on down the channel for sure. I will also take off the backup and try that too. I would like your thoughts on laminar vs laminar model though. I can try the laminar model if you think it will help me get the timestep trn files I would like.
Thanks
Attached Images
File Type: jpg contours SS.jpg (83.7 KB, 21 views)
File Type: jpg Vectors SS.jpg (186.5 KB, 22 views)
File Type: jpg timestep selector.jpg (186.4 KB, 14 views)
Svetlana likes this.
Dale MC is offline   Reply With Quote

Old   July 22, 2019, 03:13
Default
  #7
Senior Member
 
M
Join Date: Dec 2017
Posts: 701
Rep Power: 12
AtoHM is on a distinguished road
Quote:
I can try the laminar model if you think it will help me get the timestep trn files I would like.

I don't think this is what Glenn is saying. He is giving you an additional hint about wrong physical modeling which will probably influence your results. Getting trn files has nothing to do with that.
Svetlana likes this.
AtoHM is offline   Reply With Quote

Old   July 22, 2019, 03:23
Default
  #8
Senior Member
 
karachun's Avatar
 
Join Date: Nov 2015
Posts: 246
Rep Power: 12
karachun is on a distinguished road
Here is von Karman vortices. This is unsteady problem, but at low speed, flow is laminar, in spite of this there are lot of vorticities. Laminar don’t mean steady.
You may confuse laminar flow with potential flow, potential flow don’t have vorticities. Ok?
Svetlana likes this.
karachun is offline   Reply With Quote

Old   July 22, 2019, 09:16
Default
  #9
New Member
 
Dale
Join Date: Mar 2009
Posts: 15
Rep Power: 17
Dale MC is on a distinguished road
Thank you for the insight about the flow model. I will switch to the laminar model in order to get better results. I see now that rotation in the flow does not mean that I should use the turbulent model. I will also try removing the backup in just a few and see if that will help me get the trn files I need for the transient part of the analysis and let you if that works.
Thanks
Svetlana likes this.
Dale MC is offline   Reply With Quote

Old   July 22, 2019, 15:37
Default
  #10
New Member
 
Dale
Join Date: Mar 2009
Posts: 15
Rep Power: 17
Dale MC is on a distinguished road
Quick question, is it necessary to do a SS solution first when doing a transient analysis? I have tried setting it up different not specifically following tutorial 6 where they do the SS first and then use that as the start of the transient analysis?
Svetlana likes this.
Dale MC is offline   Reply With Quote

Old   July 22, 2019, 20:03
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,861
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You can start a transient simulation with any initial state you like. That initial state can come from a steady state simulation, or it could come from some other state you define.
Svetlana likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 22, 2019, 23:39
Default
  #12
New Member
 
Dale
Join Date: Mar 2009
Posts: 15
Rep Power: 17
Dale MC is on a distinguished road
great Thanks! I skipped the SS solution and finally got it to produce trn files. The problem is that I had no pulse using the expression I defined. I changed it now to 2*sin(30*theta) but am getting an error.
Svetlana likes this.
Dale MC is offline   Reply With Quote

Old   July 23, 2019, 00:01
Default
  #13
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,861
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you want us to help you please post your output file.
Svetlana likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 23, 2019, 10:54
Default
  #14
New Member
 
Dale
Join Date: Mar 2009
Posts: 15
Rep Power: 17
Dale MC is on a distinguished road
Thanks, I have attached the .out file and a picture of the error I am getting since I changed the expression for the small velocity inlet to the one in my last post. I am not sure if "theta" is a proper function. What I need to do is get the small inlet to pulse the flow, like push in, suck out, cyclically 5 times a second.
In regards to writing the trn files I think that taking the backup off might have worked. I also got rid of the doing the SS solution first as they did in tutorial 6.
Attached Images
File Type: jpg file reference error.jpg (108.4 KB, 18 views)
Attached Files
File Type: zip Fluid Flow CFX_009.zip (8.1 KB, 4 views)
Svetlana likes this.
Dale MC is offline   Reply With Quote

Old   July 23, 2019, 19:43
Default
  #15
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,861
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Have you looked in the output file? It tells you exactly what the error is.

Some other comments:
* Why are you using theta in your velocity function? Don't you mean time (variable name "t")? Look in the CFX reference manual for what the variable "theta" is defined as, I don't think you want that.
* You have a max of 5 coeff loops per iteration. Why have you done this? 10 is more normal.
* You have fourth order Rhie Chow activated? Unless you have a good reason just leave complex options like this at the defaults.
* You have large problem option activated. It does not look like a large problem to me, deactivate this option.
Svetlana likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 29, 2019, 13:16
Default
  #16
New Member
 
Dale
Join Date: Mar 2009
Posts: 15
Rep Power: 17
Dale MC is on a distinguished road
Sorry I had to work on some other things for a little while. Ok I have followed your advice and I have gotten it to run. I will mention the velocity function last. I changed the coeff loops per iteration to 10, got rid of the Rhie Chow (I thought coupling the pressure and velocity might help) and deactivated large problem. It gives a transient result but not a "in and out" flow at the small inlet. When I try to put "t" in the sine expression it gives me an error in CFX as soon as I apply it. Theta will run with no errors but not give the pulsing in and out flow cycles. Now that I am back on this, I am going to look in the manual. Any tips will be much appreciated.
Thanks
Svetlana likes this.
Dale MC is offline   Reply With Quote

Old   July 29, 2019, 20:43
Default
  #17
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15
Svetlana is on a distinguished road
I believe .trn files are only available with unsteady (=transient) simulations. In steady state simulations only the backup files are available, but transient results (.trn) are not. This is consistent with what you are saying, I just wanted to make it more clear.
Svetlana is offline   Reply With Quote

Old   September 20, 2019, 16:01
Default Got it!
  #18
New Member
 
Dale
Join Date: Mar 2009
Posts: 15
Rep Power: 17
Dale MC is on a distinguished road
Just wanted to say thanks for everyone's advice and help. I was able to get it and I am greatly appreciative. I have attached a little video.https://1drv.ms/v/s!ApLaxjQceotVjtIzrgEWjZYLsw_edA
Svetlana and karachun like this.
Dale MC is offline   Reply With Quote

Reply

Tags
cfx only does 1 timestep, mutiple trn files, only 1 res file

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
CFX Post: .trn files bunching? user_of_cfx CFX 9 December 3, 2015 05:48
Immersed solids + Compressible flow + transient solution in recent versions of CFX?? Catthan CFX 2 May 22, 2012 22:02
Visualise CFX res files salihovic CFX 3 July 16, 2010 09:35
Converting ANSYS CFX files to Fluent files Martin S. Rasmussen FLUENT 3 January 30, 2007 16:08
Transient solution multiple CGNS files in Tecplot Ramses Galaz Tecplot 3 October 17, 2006 11:43


All times are GMT -4. The time now is 16:11.