CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   Mass removal and injection (https://www.cfd-online.com/Forums/siemens/54675-mass-removal-injection.html)

Kevin Till June 29, 2005 16:06

Mass removal and injection
 
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

Kevin Till June 29, 2005 20:58

Re: Mass removal and injection
 
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

Ben June 30, 2005 04:15

Re: Mass removal and injection
 
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.

Kevin Till June 30, 2005 09:08

Re: Mass removal and injection
 
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 ???

Ben June 30, 2005 10:19

Re: Mass removal and injection
 
contact your local support office, they will be able to solve your problem and provide you with the latest release

Kevin Till June 30, 2005 15:15

Re: Mass removal and injection
 
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

Pauli July 1, 2005 09:04

Re: Mass removal and injection
 
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.


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