|
[Sponsors] |
April 8, 2020, 16:04 |
change U and controlDict from shell
|
#1 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8 |
Hi everyone
A boundary condition in the /U directory looks like this: Code:
outlet { type fixedValue; value uniform (0 VALUE 0); //fixed inlet velocity } I thought the easiest way to implement this is a shell script, something like this: Code:
#!/bin/sh setFields decomposePar mpirun -np 16 interFoam -parallel 1) in controlDict the endtime needs to be 5 seconds larger than it previously was 2) VALUE in the /U directory needs to grab the next number from the .dat file. Any help is so appreciated! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change MotorBike Tutorial to Water | connoranderson | OpenFOAM Running, Solving & CFD | 0 | January 7, 2015 20:57 |
controlDict and sampleDict giving different results | Shenan | OpenFOAM Post-Processing | 2 | November 15, 2014 10:15 |
Forces not calculated when including a library in controlDict | fusij | OpenFOAM | 2 | May 13, 2011 07:25 |
writing controlDict as otherfields | ubaid | OpenFOAM | 5 | September 29, 2010 07:28 |
FoamXException by change in controlDict | vladimir | OpenFOAM Pre-Processing | 2 | March 14, 2007 14:32 |