Hello,
What I'd like to do is something a bit different. I am implementing a new BC which is used by a certain volScalarField A. This newBC calculates the values on the same patch of another volScalarField named B. The B field is recalled inside the BC as Code:
volScalarField B = this->db().lookupObject<volScalarField>("B"); Code:
forAll (something, j) Code:
volScalarField A Code:
void Foam::newBC::write(Ostream& os) const Code:
writeEntry("Bs", os); Shall I have to code a different BC for B? If so how do I store those Bs value from my newBC of A? (because write now as soon as I get out of the newBC they are removed) Any ideas? (sorry for being messy) Thx |
Hi Minisasi,
Can you try something like this ? Code:
if (dimensionedInternalField().mesh().time().outputTime()) |
Hi,
Thank you for your reply, but unfortunately it didn't work.:( I tried to follow what they previously wrote couple of posts ago, and I wrote inside my newBC (for A) Code:
fileName testFile("TEST.txt"); Any hints? |
increasing writing precision
Dear Former,
In my OpenFOAM code, I defined a variable to trace my flame front position. So, in my log file the x position of that variable will be reported (component (0)). It works fine, but my problem is I can not increase the writing precision of this value! For example, in my running log file, I have Time = 0.000000240, max flametip = 71.9713, but I want my flametip have more accuracy! I will apperaciate any suggestion and help. To bear in mind, in my control dict, I put writePrecision 9; , timePrecision 9; and writeFormat ascii; Best Regards, Reza |
...........................
|
All times are GMT -4. The time now is 01:44. |