CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Write initial step in same format as other output

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2024, 06:35
Default Write initial step in same format as other output
  #1
New Member
 
lucy
Join Date: Jul 2024
Posts: 1
Rep Power: 0
flowylucy is on a distinguished road
Hello community,
I am pretty new to using OpenFoam so this might be obvious to some of you but I could not find another thread about this.


Right now, my outputs are written every nth timestep into a gridfile format (".asc"). But my issue is, that the first initial time step (0 for me) is ignored when writting the output and not written into the same format. I would want all of the timesteps outputs to have the same format for consistency purposes.



The log for the writing is as follows:


gridfileWrite gridfileWrite write:
automatically writing areaVectorField Us
ignoring old areaVectorField Us_0
automatically writing areaScalarField h
ignoring old areaScalarField h_0
automatically writing areaScalarField hentrain
ignoring old areaScalarField hentrain_0
automatically writing areaScalarField pb
automatically writing areaVectorField tau


I understand that pb and tau do not have an intial state since they are computed fields but is it possible to get Us_0.asc as an output for example? What do I have to change to get this? Am I missing some obvious knowledge? Is it a prameter in the dicts that I have to change? Does it have to do with the lib that i am using in gridfileWrite?



The gridfileWrite is as follows:


// Use gridfileWrite function object

gridfileWrite
{
type gridfileWrite;
libs (faAvalanche);

fields (".*");

secondOrder on;

writeOption autoWrite;
//writeOption noWrite;
//writeOption anyWrite;

ncols 426;
nrows 258;
//xllcorner -5803; //-5000
//yllcorner 219917; //-220000
xllcorner -803;
yllcorner -83;
dx 10;
dy 10;

postfix ".asc";

//offset is interpreted such that the same signs than in gridToSTLDict can be used
offset (100.0100.00);
}

// ************************************************** *********************** //




And the controlDict is as follows:


FoamFile
{
version 2.0;
format ascii;
classdictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application myApplication;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 30;

deltaT 0.1;

writeControl adjustableRunTime;

writeInterval 1;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

adjustTimeStep yes;

initDeltaT yes;

maxCo 1.0;

functions
{


#include"gridfileWrite"

}




I would really appreciate your help,
greetings,
L.
flowylucy is offline   Reply With Quote

Reply

Tags
output file, write


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 13:30
Free surface issues with interDyMFoam for hydroturbine oumnion OpenFOAM Running, Solving & CFD 0 October 6, 2017 15:05
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 14:40
Cannot run the code properly: very large time step continuity error crst15 OpenFOAM Running, Solving & CFD 9 December 14, 2014 19:17
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33


All times are GMT -4. The time now is 16:00.