# Mass removal and injection

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

 June 29, 2005, 16:06 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

 June 29, 2005, 20:58 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

 June 30, 2005, 04:15 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.

 June 30, 2005, 09:08 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 ???

 June 30, 2005, 10:19 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

 June 30, 2005, 15:15 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

 July 1, 2005, 09:04 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.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post AdN FLUENT 0 May 30, 2006 05:16 AdN FLUENT 1 May 4, 2006 04:41 hyun Main CFD Forum 1 April 26, 2006 00:25 Kevin Till CD-adapco 27 July 25, 2005 13:09 CFD Student Main CFD Forum 2 April 8, 2005 12:36

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