|
[Sponsors] |
Using 'define init' macro to perform a calculation at the start of a simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 21, 2010, 08:23 |
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 |
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! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |