[CIG-LONG] Velocity boundary conditions in Gale 2.0.0
Walter Landry
walter at geodynamics.org
Wed Jan 11 11:54:37 PST 2012
Rainer Nerlich <rainer at simula.no> wrote:
> Dear Mr. Landry,
I am Cc'ing the list in case anyone else has a similar problem.
> I am a PhD student in Oslo/Munich and trying to set up a 3D model in Gale
> 2.0.0 using velocity boundary conditions. I would like to specify boundary
> conditions on five sides of the box which would require 15 files if each
> velocity component is kept in a separate file. However, Gale allows only 10
> files, but I assume it is possible to include all vector component data in
> one file for each respective boundary - though, I couldn't figure out what
> exactly I have to do to make this work.
Actually, it is not possible to do this. The simplest solution to
this is to increase the number of input files. I have pushed a change
that increases it to 20 (0-19). Are you able to compile the code from the
repository?
Cheers,
Walter Landry
> The following lines are an example of what I have tried among other things
> for the right boundary with only zeros in the data file with respect to the
> velocity components.
>
> *1.Part:*
>
> {
>
> "type": "WallVC",
>
> "wall": "right",
>
> "variables": [
>
> {
>
> "name": "vx",
>
> "type": "func",
>
> "value": "File1"
>
> },
>
> {
>
> "name": "vy",
>
> "type": "func",
>
> "value": "File1"
>
> },
>
> {
>
> "name": "vz",
>
> "type": "func",
>
> "value": "File1"
>
> }
>
> ]
>
> },
>
> *or *
>
> {
>
> "name": "vxyz",
>
> "type": "func",
>
> "value": "File1"
>
> }
>
> ]
>
> },
>
> *2.Part:*
>
> "File1_Name": "input/cookbook/velocity/test",
>
> "File1_Dim": "2", [I use 2 because it is a 3D file]
>
> "File1_N": "21" [I specify 6, because there are 6 rows in the data file]
>
> *3.Part:*
>
> data file called “test”:
>
> 0.0 0.0 0.0 0.0 0.0
>
> 0.1 0.1 0.0 0.0 0.0
>
> 0.2 0.2 0.0 0.0 0.0
>
> 0.3 0.3 0.0 0.0 0.0
>
> 0.4 0.4 0.0 0.0 0.0
>
> 0.5 0.5 0.0 0.0 0.0
>
> I tried various different ways for each part, but nothing worked. Could you
> please be so kind to explain what I do wrong and at best send me a 3D
> example where the velocities are read from a file.
>
> Thank you very much in advance and best regards,
>
> Rainer Nerlich
More information about the CIG-LONG
mailing list