CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > FLOW-3D

Modifying Source Files in Flow3D Directories

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2009, 20:18
Default Modifying Source Files in Flow3D Directories
  #1
Xizao Yang
Guest
 
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

C:\FLOW3D\source\hydr3d\srcal.f

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.

Xizao
  Reply With Quote

Old   January 14, 2009, 08:15
Default Re: Modifying Source Files in Flow3D Directories
  #2
Stefano
Guest
 
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(ijk.ge.ijklim_bc) 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 14, 2009, 23:35
Default Re: Modifying Source Files in Flow3D Directories
  #3
Xizao Yang
Guest
 
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, 03:02
Default Re: Modifying Source Files in Flow3D Directories
  #4
Stefano
Guest
 
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

Reply


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 Off
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 Pre-Processing 4 August 2, 2016 05:24
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 BlGene OpenFOAM Meshing & Mesh Conversion 10 August 6, 2009 04:26
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
[OpenFOAM] ParaView 33 canbt open OpenFoam file hariya03 ParaView 7 September 25, 2008 17:33
Source code to read Fluent UNS cas and dat files Boyd Pukalo FLUENT 0 November 26, 1999 21:19


All times are GMT -4. The time now is 20:26.