# Read the density - fortran

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

 April 5, 2008, 07:08 Read the density - fortran #1 Ollimarc Guest   Posts: n/a hi there, please help. i think this is not a problem for the most user. but i do not know how to solve this. i have this loop inside my fortran file which describes a return variable. DO ILOC = 1,NLOC RET(ILOC,1) = 1004.4 + B*ARGS(ILOC,1) ENDDO now i want to influence that value by the density. how to read out the density out of the stack? i tried so much since weeks... getvar, user_getvar... nothing works. anyone a good idea? please please help! all the best ollimarc

 April 5, 2008, 11:55 Re: Read the density - fortran #2 Rogerio Fernandes Brito Guest   Posts: n/a i=1 DO ILOC = 1,NLOC RET(ILOC,1) = 1004.4 + B*ARGS(ILOC,1) newone(i)=density(f(RET(ILOC,1))) i=i+1 ENDDO

 April 5, 2008, 12:53 Re: Read the density - fortran #3 Ollimarc Guest   Posts: n/a hey rogerio, thank you for your reply. but i do not know really how to use this. i want a real value inside of this loop like this i=1 DO ILOC = 1,NLOC RET(ILOC,1) = 1004.4 + B*ARGS(ILOC,1)+newone*0.1 ENDDO and this newone must be the actual density at that point.

 April 5, 2008, 13:05 Re: Read the density - fortran #4 Rogerio Fernandes Brito Guest   Posts: n/a density has a name in cfx like time is t and temperature is T etc i donīt know the name for density (give a look on tutorials of cfx5.6) cfx will pick up this value each time of your simulation, ok?

 April 5, 2008, 13:10 Re: Read the density - fortran #5 Ollimarc Guest   Posts: n/a this is a user CEL function and calculates throught all points in the mesh with the actual temperature (args..) and the then wanted density. i will try that again, thank you. i must declare "newone(i)" as a real array. i tried "real newone(i)". but then i got the error message that this must be a dummy argument. since iam a newbie in this, i do not know how to do that. can you still help me with this? that would be very great!! thanks a lot!

 April 5, 2008, 13:12 Re: Read the density - fortran #6 Ollimarc Guest   Posts: n/a ...and the compiler said that it has a problem with "f" and "density". must I declare that?

 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 ottbot Main CFD Forum 7 June 11, 2013 12:09 hlsky FLUENT 0 October 12, 2011 11:07 hlsky Fluent UDF and Scheme Programming 0 October 12, 2011 10:47 rick Main CFD Forum 45 September 6, 2011 00:52 ryzd FLUENT 1 August 25, 2011 14:16

All times are GMT -4. The time now is 13:29.