CFD Online Logo CFD Online URL
Home > Forums > FLOW-3D

Modifying Source Files in Flow3D Directories

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

LinkBack Thread Tools Display Modes
Old   January 12, 2009, 21:18
Default Modifying Source Files in Flow3D Directories
Xizao Yang
Posts: n/a
Dear all,

I was working on a concentration problem and wanted to add a decaying source to it. I looked through the Fortran files in the source folder and thought that some slight modification here may be needed to decrease the scalar (concentration in this case) as retention time increases. One of the files I located was


which contains scalar information and scalar sources. Has anyone done this kind of modification before? Can you please offer me some suggestions? I appreciate your time.

  Reply With Quote

Old   January 14, 2009, 09:15
Default Re: Modifying Source Files in Flow3D Directories
Posts: n/a
that fortran file should be good. I did something like that once, but I'm not sure what you mean by "retention" time. I paste here my lines, keeping free the function to change your scalar so you can personalize that line with the funcion you want:

if (idum1>0) then

do k=kprb,kprt

do j=jprf,jprbk

do i=iprl,iprr

include '../comdeck/ijk.f'

if( cycle

if(vf(ijk).lt.em6) cycle

if(fn(ijk).lt.emf .and. nmat.eq.1) cycle

if ((sclr(ijk,idum2)<=0)) cycle

sclr(ijk,idum2)=sclr(ijk,idum2)/t !!!!!!!!!!

end do

end do

end do endif

idum1 is a my flag to activate or deactivate the customization. The first lines skip thru all the cells, skipping the ones that are empty or fully blocked, or that don't contain my scalar. So, finally, for each cell that contain my scalar, I decrease it's value as a function of time. (line !!!!!!!!!) You can change here this function.
  Reply With Quote

Old   January 15, 2009, 00:35
Default Re: Modifying Source Files in Flow3D Directories
Xizao Yang
Posts: n/a
Hello Stefano, thanks for the suggestion, hope it works.

Also, sorry about the confusion surrounding "retention" time, I actually meant software running time.
  Reply With Quote

Old   January 15, 2009, 04:02
Default Re: Modifying Source Files in Flow3D Directories
Posts: n/a
probably it works only from version 9.2 on , because it use the unstructured memory allocation, but I'm not sure on this, we should ask to FlowScience staff. But if you use 9.2 or newer you'll not have any problem.
  Reply With Quote


Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running mapFields with Parallel Source and Parallel Target RDanks OpenFOAM Mesh Utilities 4 August 2, 2016 05:24
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
ParaView 33 canbt open OpenFoam file hariya03 OpenFOAM Paraview & paraFoam 7 September 25, 2008 17:33
Source code to read Fluent UNS cas and dat files Boyd Pukalo FLUENT 0 November 26, 1999 22:19

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