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

User Fortran - Alter variables in runtime

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2010, 09:42
Default User Fortran - Alter variables in runtime
  #1
New Member
 
Peter
Join Date: Apr 2009
Posts: 8
Rep Power: 17
ellevset is on a distinguished road
Hi
Is it is possible to use User fortran to change simulation variables. For example applying a step function to the Soot Mass Fraction of the Magnusson Soot model.

Peter
ellevset is offline   Reply With Quote

Old   July 5, 2010, 20:01
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
Yes, it should be possible. Sounds like a bad idea as the numerics will be unstable. Why do you want to apply a step function to the mass fraction?
ghorrocks is online now   Reply With Quote

Old   July 6, 2010, 04:10
Default
  #3
New Member
 
Peter
Join Date: Apr 2009
Posts: 8
Rep Power: 17
ellevset is on a distinguished road
I agree, it does sound like a bad ideas, but I have been experiencing some problems with the soot model. The entire domain is filled with a small amount of soot, of the order 1E-05. Even far away from the combustion.

I thought perhaps adding a filter would solve this problem.

Another question on User Fortran. When you create subprocesses are they automatically calculated of every cell, or do you have to specify where the calculation is done?
ellevset is offline   Reply With Quote

Old   July 6, 2010, 19:37
Default
  #4
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
In this case your suggestion sounds like a really bad idea. You should check the simulation setup, have a look at the tutorials or ask CFX support for a demo file. I can't see how your suggestion will help.

Read the documentation on user fortran about how it works. There are two approaches - and I will let the documentation explain what they are.
ghorrocks is online now   Reply With Quote

Reply

Tags
runtime, soot model, user fortran


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
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
user routine, user funcion, or fortran compile effect on the memroy? princeps11 CFX 1 May 13, 2009 19:37
User Fortran and interior node information John CFX 0 August 26, 2008 23:24
User fortran routines, DEBUG AND OUTPUT Bloshchitsyn Vladimir CFX 5 October 29, 2007 02:31
Best Code for User Fortran worth Main CFD Forum 4 November 14, 2003 11:21


All times are GMT -4. The time now is 04:24.