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')
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
Billions of thanks and regards, Hamed