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

User Fortran - Alter variables in runtime

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 5, 2010, 08:42
Default User Fortran - Alter variables in runtime
  #1
New Member
 
Peter
Join Date: Apr 2009
Posts: 8
Rep Power: 8
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, 19:01
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,937
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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 offline   Reply With Quote

Old   July 6, 2010, 03:10
Default
  #3
New Member
 
Peter
Join Date: Apr 2009
Posts: 8
Rep Power: 8
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, 18:37
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,937
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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 offline   Reply With Quote

Reply

Tags
runtime, soot model, user fortran

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
user routine, user funcion, or fortran compile effect on the memroy? princeps11 CFX 1 May 13, 2009 18:37
User Fortran and interior node information John CFX 0 August 26, 2008 22: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 15:12.