Hello all,
I’m trying to troubleshoot a OGS project my subgroup has been putting together, specifically it’s project file, and I’ve got quite stumped on two particular sets of error:
One of them is the displacement0 issue, where it’s unclear to me why it says displacement0 has the wrong number of components when it’s a vectorial quantity. (Switching it and all references to it to 1 component quite correctly gets “error: Number of components of the process variable ‘displacement’ is different from the displacement dimension: got 1, expected 3”)
Meanwhile, the key parameter issue has been just confounding. Parameter is definitely well-defined in the right place, I’ve checked the documentation quite a bit, but this is simply what happens when the project is run. Commenting out specific boundary conditions and source terms removes the corresponding critical error, and commenting them all makes the project file run, but, y’know, they’re kinda important.
I am going to try and attach the prototype .prj file itself in the first reply, probably by copying the text inside of a summary.
Hi!
The problem is with the components.
For the IC you are right, displacement0 should have 3 dimensions. However, for the BCs,
you specify individual components and these have only scalar values, ie. you need a second parameter with <value>0</value>.
Another thing, if you want to specify the 3rd component of the displacement vector you should set it to 2 instead of 3 as we start counting with 0.
Best
Jörg
Hello,
Thanks for the advice, setting up the scalar bc parameter fixed the component number issue, and then once I re-extracted the surfaces to fix a bulk nodes id map complaint the project started working. Problem solved! (It does really slowly but I can probably fix that myself).
One question, though: Not sure what you meant by setting it to 2 instead of 3, the component number input for the displacement process variable and its boundary conditions (and the pressure source term) seems to count from 1, 3 for the 3d initial condition and 1 for the scalar boundary conditions is what`s worked. I’m guessing you mean specifying somewhere else?
<components></components> under process variables is the total number of components. This should be for the displacement the same as your bulk dimensions. <component></component> under boundary conditions specifies the specific component you want to set. In the 3d case it could be 0, 1 or 2. The component is scalar anyway; however, you need to set which component you mean. So originally, with 3 you were specifying the 4th component that did not exist. With 1 you specify the y component etc.