|
[Sponsors] |
July 17, 2008, 18:32 |
Hi Guys:
I am running foam
|
#1 |
Member
Ning Yang
Join Date: Mar 2009
Location: University Park, PA, USA
Posts: 84
Rep Power: 17 |
Hi Guys:
I am running foam 1.5 with a timeVaryingUniformFixedValue BC. Here is the format I used in my bc: type timeVaryingUniformFixedValue; fileName "time-series"; boundAction clamp; // (error|warn|clamp|repeat) i tried both relative path and complete path for the "time-series" file. And the format of the file is consistent with the old version 1.4.1, and it is something like: { t0 p0 t1 p1 t2 p2 .... } when I ran my stuff, I got an error: ================================================== = Reading transportProperties Reading field p Reading field U keyword outOfBounds is undefined in dictionary "/home/nzy102/OpenFOAM/nzy102-1.5/run/tutorials/icoFoam/pediatric_aorta_4-e_test mesh_pulsatile_resistancenewbc_zeroGradU/0/U::inlet" file: /home/nzy102/OpenFOAM/nzy102-1.5/run/tutorials/icoFoam/pediatric_aorta_4-e_testm esh_pulsatile_resistancenewbc_zeroGradU/0/U::inlet from line 61 to line 63. From function dictionary::lookupEntry(const word& keyword) const in file db/dictionary/dictionary.C at line 213. FOAM exiting ================================================== = Anybody here has a clue what is wrong? Thank you. Ning |
|
July 18, 2008, 03:53 |
Try something like this:
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Try something like this:
fileName "$FOAM_CASE/time-series"; outOfBounds clamp; It looks like the docs are slightly out-of-sync. |
|
July 30, 2008, 14:57 |
Using the openfoam 1.5 package
|
#3 |
Senior Member
|
Using the openfoam 1.5 package, I had to manually set the $FOAM_CASE variable before running paraFoam to avoid an error that would cause it to exit before any rendering could be done. (That is in the case of a time varying inlet velocity).
|
|
July 31, 2008, 03:39 |
I've reported this and it's al
|
#4 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
I've reported this and it's already been fixed for the next release.
If you are willing to patch the source a bit, the changes to vtkPV3Foam.C are quite simple: In the Foam::vtkPV3Foam::vtkPV3Foam constructor you need these lines: // avoid argList and get rootPath/caseName directly from the file fileName fullCasePath(fileName(FileName).path()); if (!dir(fullCasePath)) { return; } if (fullCasePath == ".") { fullCasePath = cwd(); } // Set the case as an environment variable - some BCs might use this if (fullCasePath.name().find("processor", 0) == 0) { setEnv("FOAM_CASE", fullCasePath.path(), true); } else { setEnv("FOAM_CASE", fullCasePath, true); } |
|
July 31, 2008, 12:12 |
Thank you Mark.
By adding
|
#5 |
Senior Member
|
Thank you Mark.
By adding // Set the case as an environment variable - some BCs might use this if (fullCasePath.name().find("processor", 0) == 0) { setEnv("FOAM_CASE", fullCasePath.path(), true); } else { setEnv("FOAM_CASE", fullCasePath, true); } after fileName fullCasePath(fileName(FileName).path()); if (!dir(fullCasePath)) { return; } if (fullCasePath == ".") { fullCasePath = cwd(); } my problem was solved. |
|
August 19, 2008, 09:08 |
Hello Guys,
Just for comple
|
#6 |
Member
Tobias Holzinger
Join Date: Mar 2009
Location: Munich, Germany
Posts: 46
Rep Power: 17 |
Hello Guys,
Just for completion of this thread: I tried to restart my simulation with the new Version. There seemed to be a change in the file Format of the TimeVaryingUniformFixedValue BC, at least for varying velocities. My old file looked like: ( t1 U1 t2 U2 t3 U3 ... ) The new file has to look like: ( (t1 (Ux1 Uy1 Uz1)) (t2 (Ux2 Uy2 Uz2)) (t1 (Ux3 Uy3 Uz3)) ... ) Obviously somebody managed to change the Velocitydescription from normal to cartesian... would be nice if such things are posted somewhere.... Hope this helps anyone who starts with this BC
__________________
Tobias Holzinger Chair of Thermodynamics, TU München |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TimeVaryingUniformFixedValue | holger_marschall | OpenFOAM Running, Solving & CFD | 4 | August 10, 2013 15:47 |
TimeVaryingUniformFixedValue with sonicLiquidFoam Bugs amp Fixes | chnrdu | OpenFOAM Bugs | 1 | May 21, 2008 10:52 |
TimeVaryingUniformFixedValue does not work as a pressureInlet with sonicLiquidFoam | nishant_hull | OpenFOAM Running, Solving & CFD | 5 | May 21, 2008 09:54 |
TimeVaryingUniformFixedValue boundary condition | liu | OpenFOAM Running, Solving & CFD | 1 | October 12, 2007 14:19 |
FOAM | CFDtoy | Main CFD Forum | 5 | September 21, 2004 15:09 |