|
[Sponsors] |
October 8, 2010, 20:52 |
CEL function in CFX
|
#1 |
New Member
Ehsan
Join Date: Jan 2010
Posts: 7
Rep Power: 16 |
I am trying to learn how to write a CEL function in fortran to add source term in momentum eqn.
I am looking at the examples given in user's modeling guide and trying to repeat example 1. It seems to be straight forward, however, I get segmention error in solver: +--------------------------------------------------------------------+ | ERROR #001100279 has occurred in subroutine ErrAction. | | Message: | | Signal caught: Segmentation violation | +--------------------------------------------------------------------+ It even stops with this error message when I tried an empty routine. I would appreciate any help in advance. Ehsan |
|
October 14, 2010, 16:34 |
|
#2 |
Senior Member
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17 |
Did you retype it or took it from the examples directory?
|
|
October 14, 2010, 16:52 |
|
#3 |
New Member
Ehsan
Join Date: Jan 2010
Posts: 7
Rep Power: 16 |
I typed it. But I also got the same problem when I tried to run the HVAC example from the tutorial.
I figured out that it would work if I comment the 'success flag' (CRESLT) at the end of subroutine. I am still not sure why it happens, I would appreciate any more comment. |
|
October 14, 2010, 22:27 |
|
#4 |
Senior Member
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 17 |
You are probably accessing an array out of bounds. Check your array indices.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |
help on mass sink using CEL function | buhkuh | CFX | 0 | March 19, 2008 00:57 |
Bessel Function in CFX 10 | Sheeko | CFX | 1 | April 2, 2006 09:28 |
How does STEP function work in CEL setup in CFX5.5 | joseph | CFX | 1 | April 6, 2002 00:06 |