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

CEL function in CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2010, 19:52
Default CEL function in CFX
  #1
New Member
 
Ehsan
Join Date: Jan 2010
Posts: 7
Rep Power: 16
ehsanshams is on a distinguished road
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
ehsanshams is offline   Reply With Quote

Old   October 14, 2010, 15:34
Default
  #2
Senior Member
 
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17
joey2007 is on a distinguished road
Did you retype it or took it from the examples directory?
joey2007 is offline   Reply With Quote

Old   October 14, 2010, 15:52
Default
  #3
New Member
 
Ehsan
Join Date: Jan 2010
Posts: 7
Rep Power: 16
ehsanshams is on a distinguished road
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.
ehsanshams is offline   Reply With Quote

Old   October 14, 2010, 21:27
Default
  #4
Senior Member
 
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 17
michael_owen is on a distinguished road
You are probably accessing an array out of bounds. Check your array indices.
michael_owen 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
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
help on mass sink using CEL function buhkuh CFX 0 March 18, 2008 23:57
Bessel Function in CFX 10 Sheeko CFX 1 April 2, 2006 08:28
How does STEP function work in CEL setup in CFX5.5 joseph CFX 1 April 5, 2002 23:06


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