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

Using 'define init' macro to perform a calculation at the start of a simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2010, 08:23
Default Using 'define init' macro to perform a calculation at the start of a simulation
  #1
New Member
 
Jonathan
Join Date: Dec 2009
Posts: 2
Rep Power: 0
jonnythewlis is on a distinguished road
Hi,

I was wondering if anyone knows if you can use the define init macro to perform an unrelated calculation to the flow variables that will be used in a later function. I've tried this but it seems to crash. There must be some way of doing this though.

For example,

DEFINE_INIT(name1, d)
{
a=b+c;
}

DEFINE_PROFILE(name2, thread, index)
{
begin_f_loop(f, thread)
{
F_PROFILE(f, thread, index) = a;
}
}

Thanks!
jonnythewlis 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
Run time Selection Mechanism - Some help required to understand jaswi OpenFOAM Programming & Development 3 October 29, 2015 14:42
Steady-state simulation to start a transient simulation smagmon CFX 2 May 18, 2009 04:59
Can Fluent start a simulation from a negative time Ted Chu FLUENT 10 November 26, 2008 22:06
Transient simulation error on start - Korsh Mik CFX 1 November 2, 2005 10:08
Warning 097- AB Siemens 6 November 15, 2004 05:41


All times are GMT -4. The time now is 14:10.