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

Mass removal and injection

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2005, 17:06
Default Mass removal and injection
  #1
Kevin Till
Guest
 
Posts: n/a
I am modeling a channel that has three species in it. One is constant concentration (initially 80%)- so I set that as the primary fluid. The second has decreasing concentration (initially 19%) - so I am using sorsca.f user defined subroutine to simulate the removal of this scalar. The third has increasing concentration (initially 1%) - I am also using sorsca.f to simulate this mass source.

However, something must not be working correctly because the concentrations of the scalars are not changing. Here is the sorsca.f code:

C FOR O2...

IF(IS.EQ.1.AND.IMAT.EQ.1) THEN

S1P=0

S2P=(0.032*1500)/(4*96487*0.0015)*SCALAR(1)

ENDIF

C FOR H2O...

IF(IS.EQ.2.AND.IMAT.EQ.1) THEN

S1P=0

S2P=(-1.802*0.0000001*1500)/(2*96487*0.0015)*SCALAR(2)

ENDIF

RETURN

END

Do I have something wrong in my code or is it in my model? Thanks in advance for you input and help.

- kevin
  Reply With Quote

Old   June 29, 2005, 21:58
Default Re: Mass removal and injection
  #2
Kevin Till
Guest
 
Posts: n/a
Furthermore, I am using StarCD version 3.10. The initial concentrations of the additional scalars was set in the model to the appropriate values. There are only the two additional scalars - O2 (19%) and H2O (1%).

These equations in the source code:

S2P=(0.032*1500)/(4*96487*0.0015)

S2P=(-1.802*0.0000001*1500)/(2*96487*0.0015)

are specifying the addition or removal of the scalars 1 and 2 respectively. They are constant (kg/s*m^3).

Hopefully that helps a little and somebody can give me a hand! Thanks.

- kevin
  Reply With Quote

Old   June 30, 2005, 05:15
Default Re: Mass removal and injection
  #3
Ben
Guest
 
Posts: n/a
well first off i would sugest that you get a version of Star that is slightly more up to date, 3.10 is about 7 years old after all.
  Reply With Quote

Old   June 30, 2005, 10:08
Default Re: Mass removal and injection
  #4
Kevin Till
Guest
 
Posts: n/a
That is all that I have where I am working...so I can't do much about that. Does anyone have a decent grasp on how to program sorsca.f ???
  Reply With Quote

Old   June 30, 2005, 11:19
Default Re: Mass removal and injection
  #5
Ben
Guest
 
Posts: n/a
contact your local support office, they will be able to solve your problem and provide you with the latest release
  Reply With Quote

Old   June 30, 2005, 16:15
Default Re: Mass removal and injection
  #6
Kevin Till
Guest
 
Posts: n/a
I have now aquired version 3.24. However, not without problems. I am recieving this error message when I attempt to run my analysis:

______________________________________

PNP: Initialized [2005-06-30-14:25:24] Automatic Sequential Automatic Parallel analyzer. PNP: Allocated "wks118022,1" resource (1 process). PNP: Assigned "wks118022,1" to STAR solver (1 process). PNP: Activated "ssh" command for starting tasks on remote nodes. PNP: Analyzing User coding in "ufile" directory. PNP: compiling /opt/SUNWspro/bin/f90 -w -fast -xarch=v9b -c sorsca.f -o sunos64_5.8-ultra3-f90_7.0-dso/sorsca.o PNP: ***ERROR*** Failed to generate user coding dynamic shared object "ufile/sunos64_5.8-ultra3-f90_7.0-dso/libstarusr.so". PNP: ==> Please check the dynamic shared object generation error messages.

________________________________________

So I can't even get the thing to start running for some reason. I am new to StarCD and not to savy with programming/code/etc. Anyone have any ideas?

- Kevin
  Reply With Quote

Old   July 1, 2005, 10:04
Default Re: Mass removal and injection
  #7
Pauli
Guest
 
Posts: n/a
This is the key message:

PNP: compiling /opt/SUNWspro/bin/f90 -w -fast xarch=v9b -c sorsca.f -o sunos64_5.8-ultra3-f90_7.0-dso/sorsca.o PNP: ***ERROR*** Failed to generate user coding dynamic shared object

The compilation of your user subroutine failed. Try compiling from the command line. If that works Star is unaware of your compiler, check the paths in $STARDIR/etc/hardware.ini.
  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
MASS INJECTION...PLEASE NEED HELP AdN FLUENT 0 May 30, 2006 06:16
MASS InJeCtion with UDF AdN FLUENT 1 May 4, 2006 05:41
mass injection in a 2D axi-symmetric problem hyun Main CFD Forum 1 April 26, 2006 01:25
Mass removal and injection...Please help! Kevin Till Siemens 27 July 25, 2005 14:09
mass injection BC CFD Student Main CFD Forum 2 April 8, 2005 13:36


All times are GMT -4. The time now is 20:10.