|
[Sponsors] |
June 29, 2005, 17:06 |
Mass removal and injection
|
#1 |
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 |
|
June 29, 2005, 21:58 |
Re: Mass removal and injection
|
#2 |
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 |
|
June 30, 2005, 05:15 |
Re: Mass removal and injection
|
#3 |
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.
|
|
June 30, 2005, 10:08 |
Re: Mass removal and injection
|
#4 |
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 ???
|
|
June 30, 2005, 11:19 |
Re: Mass removal and injection
|
#5 |
Guest
Posts: n/a
|
contact your local support office, they will be able to solve your problem and provide you with the latest release
|
|
June 30, 2005, 16:15 |
Re: Mass removal and injection
|
#6 |
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 |
|
July 1, 2005, 10:04 |
Re: Mass removal and injection
|
#7 |
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. |
|
|
|
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 |