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

The Incredible Segfaulting LIVCLL

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 1, 2003, 01:25
Default The Incredible Segfaulting LIVCLL
  #1
cjtune
Guest
 
Posts: n/a
Hi,

I keep getting segmentation faults when using the internal STAR routine 'LIVCLL'. I had it loop within posdat.f to 'scan' though a column of cell layers to see whether they are active or have been deactivated. It runs fine for the first few iterations but then will crash. Funny thing is, compiling my run as double precision seems to increase the number of loops that LIVCLL can go through before crashing.

Perhaps I need to increase some STAR variable to allocate more memory, somehow?

Tried checking stack size in Linux with ulimit -s. Says 'unlimited'.

Thank you in advance.
  Reply With Quote

Old   March 1, 2003, 14:46
Default Re: The Incredible Segfaulting LIVCLL
  #2
steve
Guest
 
Posts: n/a
I don't know what the answer, but strange as it might seem, sometimes unlimited stack is worse than a reasonable limit. Just for grins, try setting stack to 64Mb. Its your datasize that needs to be unlimited. Steve
  Reply With Quote

Old   March 2, 2003, 23:07
Default Re: The Incredible Segfaulting LIVCLL
  #3
cjtune
Guest
 
Posts: n/a
Erm, don't think I can set the stack size beyond 1MB. Linux defaults it to unlimited after that.

Nope, no effect. But thanks anyway, steve.

Unlimited datasize? What does that mean? Surely a 15k cell model wouldn't need so much memory.
  Reply With Quote

Old   March 3, 2003, 11:34
Default Re: The Incredible Segfaulting LIVCLL
  #4
steve
Guest
 
Posts: n/a
You are right - a 15k model certainly does not need so much memory. I didn't realize it was so small. I would guess that it is some sort of coding error. Perhaps you are not calling livcll with the right parameters. You should contact user support.

Steve
  Reply With Quote

Old   March 3, 2003, 11:51
Default Re: The Incredible Segfaulting LIVCLL
  #5
cjtune
Guest
 
Posts: n/a
I usually work in parallel: ask BOTH user support and this forum at the same time. Still waiting for user support but it's only been a few days so I think they'll probably manage to come up with something.

Thinking to substitute it with VOL(IP) instead of LIVCLL(IP,ISTAT). Can I assume that checking whether a cell' s volume is below a certain threshold (eg. 1.0E-10 m^3) can determine its active/deactivated state?
  Reply With Quote

Old   March 3, 2003, 22:01
Default Re: The Incredible Segfaulting LIVCLL
  #6
steve
Guest
 
Posts: n/a
You can count on it if you know that all deactivated cells are collapsed because you are the one collapsing them. If, for example, you deactive cells because a valve closes and they are no longer part of the fluid stream, I think they would still have positive volumes.

Steve
  Reply With Quote

Old   March 4, 2003, 01:07
Default Re: The Incredible Segfaulting LIVCLL
  #7
cjtune
Guest
 
Posts: n/a
Those would be excluded cells. Deactivated cells will be squashed by ProSTAR to zero or approaching-zero volumes in the direction specified by EDDI. Well, so far VOL(IP) seems to work though.

Unfortunately, I'm not the one that's gonna collapse and expand the cells during the run. I'm trying to give the usubs that freedom, since in this FSI case, the mesh motion cannot be known in advance, hence the use of LIVCLL, and some way of arbitrarily choosing which events to execute (CALL FLIP32, I reckon, but ain't working yet).
  Reply With Quote

Reply

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
problem with compiler and LIVCLL RX CD-adapco 1 December 10, 2006 15:53


All times are GMT -4. The time now is 12:57.