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

linux usercode can't renew the force

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2020, 01:59
Default linux usercode can't renew the force
  #1
New Member
 
momop
Join Date: Aug 2019
Posts: 5
Rep Power: 6
momop is on a distinguished road
my usercode will renew the force I calculated,it works good on Windows , but I compile it in Linux and put it in Star-CCM+,but the simulation shows that the force I calculated don't appear in the place I want correctly, the place's force always Divergense(10E31),and then output start show Turbulence viscosity limited and reverse flow in outlet ,does anyone have same question?

gcc -Wall -g -fPIC -DDOUBLE_PRECISION -c /home/parallel/Desktop/test/code/uclib.c -o obj/Debug/uclib.o

g++ -shared obj/Debug/bodyforce.o obj/Debug/uclib.o -o bin/Debug/libcode.so -Wl,-export-dynamic -ldl -lc

I use code blocks to compile the share library, are they correctly?
momop 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
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" ds4719 Main CFD Forum 14 February 18, 2022 18:05
interFOAM, how to define body force and force on interface Prosper OpenFOAM Pre-Processing 3 June 17, 2021 09:56
Force on moving body joechorn Fluent UDF and Scheme Programming 5 April 2, 2015 11:25
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 07:26
Viscous force and coefficient viscous force tobino Main CFD Forum 0 February 20, 2011 21:06


All times are GMT -4. The time now is 18:51.