outputTime in Swak function
I have written this SWAK function to write the expression at each outputTime(not each timeStep):
Code:
n1_totalTemperature Code:
nused output: areaAverage(right) for p = 303977.3946 |
Hi Ehsan,
In this case, swak4Foam doesn't use "outputControl". It only uses "outputInterval". Which means that it you'll have to use something like this: Code:
outputInterval 10; Bruno |
Hi Bruno
1)what do you mean by "in this case"? 2)I have a variable timeStep.there isn't any other way to have outputs concurrent with folder writing times to save time? I saw this,what does cloud mean? Code:
createThrePointSet thanks. |
Hi Ehsan,
1) From what I can figure out, swak4Foam can use "outputControl" in some other function objects. But in this case, namely for "swakExpression", this doesn't work. 2) Quote:
Quote:
3) As I said on the email a few minutes ago, "phi" cannot be used with the "sampledSurface" in OpenFOAM's function object, which is why "faceZone" has to be used instead. Best regards, Bruno |
Quote:
Quote:
|
Hi Bernhard
when does the new version will release?(current version i use is 0.2.3 is there a newer one?) |
Quote:
Quote:
|
Hi Bernhard
I'm writing the variable on the patch using swakEpression Code:
Ttop { Code:
--> FOAM FATAL ERROR: This is showing this error also Code:
--> FOAM Warning : |
Quote:
Code:
libs |
I'm using OF 3.0.1 and just installed swak4Foam 0.4.0 from here.
installation process seemed to went well. but now I'm getting this error. Code:
-> FOAM FATAL ERROR: where should swak4Foam libraries be placed now? |
Quote:
|
Quote:
Code:
libs ( 3. it gives me this: Code:
ls: cannot access /home/afshin/OpenFOAM/afshin-3.0.1/platforms/linux64GccDPInt32Opt/lib: No such file or directory Code:
/opt/openfoam30/platforms/linux64GccDPInt32Opt/lib |
Greetings Afshin,
Please keep in mind that OpenFOAM is very picky with every single detail ;) Any missing detail can be the reason for it to not work as intended. Quote:
Quote:
Quote:
Quote:
If this diagnosis is correct, then I need the log file "log.make" that results from this command: Code:
./Allwmake > log.make 2>&1 Code:
gzip < log.make > log.make.gz Best regards, Bruno |
1 Attachment(s)
Quote:
is there a problem in having multiple libs entries ? that's the complete output: Code:
/*---------------------------------------------------------------------------*\ Regards, Afshin. |
Quick answer: The log file told us the whole story! :)
The problem is that you built swak4Foam with root powers (probably using sudo), because it tells us that one of the installation folders was this: Code:
/home/afshin/OpenFOAM/root-3.0.1/platforms/linux64GccDPInt32Opt/lib/ OK, let's see if I don't make a mistake in the following code... please carefully run these commands: Code:
cd ~/OpenFOAM Code:
ls -l $FOAM_USER_LIBBIN Quote:
Code:
libs ("libsimpleFunctionObjects.so"); Code:
libs ("libsimpleFunctionObjects.so" "libsimpleSwakFunctionObjects.so" ); |
Quote:
thank you for your kind help. but I can't get my code to work: Code:
functions Code:
Create time |
Quick answer: "alpha.water" problem... that has to do with a problem that swak4Foam has with field names that have dots in their names. Googling... results:
|
Hi,
I would like the output time step of swakExpression be written in 7 precisions. My current command is as following: Code:
interfaceTemp But it is still written in 4, although the processing time step precision is 7: # Time average min max 31.8321 343.078 342.996 362.95 31.8321 343.065 341.481 362.862 31.8321 343.061 342.085 362.834 I will apprciate any help. Cheers, Elham |
Quote:
AFAIK (but I'd have to check the sources to be sure) swak makes no effort to change the write precision. So unless the underlying Foam-implementation doesn't support this on a functionObject-level (I'm not aware of this) your best chance is to set it in the controlDict for the whole run (everything will be written with 7 digits) |
Quote:
|
All times are GMT -4. The time now is 22:22. |