Updating Elmer on Windows xp

Discussion about building and installing Elmer
hamed
Posts: 110
Joined: 12 Oct 2009, 18:28

Re: Updating Elmer on Windows xp

Post by hamed »

Hi Peter
I'm full of joy as I finally could install Elmer from the source. The old instructions for compiling with gfortran was quite effective. Now I want to know if it is possible to modify SolverUtils.src in SetPeriodicBoundariesPass1 and 2 such that periodic B.C. parameter 'scale' can be given as an input argument in the sif file.
I guess I should add 'USE DefUtils' in the beginning of SolverUtils.src (I'm not sure as 'USE SolverUtils' is also present in DefUtils.src and I don't know whether is it correct to apply a two-way USE statement between two modules or not) and add the following line in SetPeriodicBoundariesPass1 and 2:

Code: Select all

Scale = GetConstReal( Model % BCs(i) % Values, 'Periodic Scale')
and e.g. the following lines in the sif file:

Code: Select all

Boundary Condition 5  
Target Boundaries = 6 
Velocity 1 = 0.0  
Velocity 2 = 0.0  
Mesh Update 1 = 0.0
Periodic Scale = -2.0
Periodic BC = 7
Periodic BC Mesh Update 2 = Logical True
End
Am I right?
Billions of thanks and regards, Hamed
hamed
Posts: 110
Joined: 12 Oct 2009, 18:28

Re: Updating Elmer on Windows xp

Post by hamed »

I tested it and it didn't work.
Post Reply