CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Loading user code in Windows

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

Like Tree1Likes
  • 1 Post By bluebase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2019, 08:27
Default Loading user code in Windows
  #1
Member
 
Yogesh Nalam
Join Date: Sep 2012
Location: München, Germany
Posts: 54
Rep Power: 12
nalamyogesh is on a distinguished road
Hello,

I compiled a user code (*.so) in Linux using the command :

gcc -fPIC -shared *.c -o libuser.so

Can I load the generated libuser.so file into Star CCM+ on a Windows machine ?

When I do that, I am always getting this error of memory access violation. Any help would be appreciated.

Thank You!
nalamyogesh is offline   Reply With Quote

Old   May 13, 2019, 05:31
Default
  #2
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 19
bluebase will become famous soon enough
Hi Yogesh,

as the manual indicates this is not possible.
You have to compile the user library on the windows machine separately.

With some further studies of the differences between unix and microsoft world, you will get to know why.

Anyway, recheck the StarCCM manual, it also explains how to compile the library for windows from its source.

Best regards,
Sebastian
nalamyogesh likes this.

Last edited by bluebase; May 13, 2019 at 05:38. Reason: wording
bluebase is offline   Reply With Quote

Old   May 13, 2019, 05:34
Default
  #3
Member
 
Yogesh Nalam
Join Date: Sep 2012
Location: München, Germany
Posts: 54
Rep Power: 12
nalamyogesh is on a distinguished road
Hello Sebastian,

Thank you for the response. Yes, I now get it and have compiled seperately.

Kind regards,
Yogesh
nalamyogesh is offline   Reply With Quote

Reply

Tags
memory access exception, unix, user code

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a user code HN_Hoang STAR-CCM+ 3 December 27, 2020 04:15
How to successfully export jpeg image with User defined Windows Size in Batch mode potofus EnSight 2 April 26, 2016 04:25
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
user friendly cfd code waqar Main CFD Forum 19 August 18, 2000 17:31
Open source CFD code development, possible? Dr. Yazid Bindar Main CFD Forum 27 July 18, 2000 01:18


All times are GMT -4. The time now is 21:44.