tkeskita
08/17/2025, 11:43 AMMoose
08/18/2025, 10:42 AMMoose
08/18/2025, 10:42 AMMitch
08/18/2025, 2:29 PMfinn
08/18/2025, 3:12 PMfinn
08/18/2025, 3:12 PMtkeskita
08/18/2025, 5:19 PMmpirun -np 4 smoothMesh -parallel
, decomposeParDict says numberOfSubDomains 4
, it runs fine till the end but and at the very end of run it says
[0] --> FOAM FATAL ERROR:
[0] "/path/to/smoothMesh/run_tests/testcase4/system/decomposeParDict" specifies 4 processors but job was started with 3 processors.
When I run with mpirun -np 2
with numberOfSubDomains 2
it runs happily till the end and says number of processor directories = 2 is not equal to the number of processors = 3
When I run with three processors, it does not complain anything.
π€·
What is going on?tkeskita
08/19/2025, 3:24 PMtkeskita
08/19/2025, 3:34 PMsyncPointList
several times in a loop for syncing the same list. I'm not sure why it does not work right, some MPI thing maybe..?finn
08/20/2025, 8:59 AMMateo
08/21/2025, 12:54 AMfinn
08/22/2025, 12:06 PMMoose
08/22/2025, 2:09 PMfinn
08/26/2025, 2:03 PM/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object funkySetBoundaryDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
velocities
{
field U;
expressions
(
{
target value;
patchName "inlet";
variables
(
"Uavg=0.042;"
"xCoord=pos().x;"
"yCoord=pos().y;"
"xCoordMax=max(xCoord);"
"yCoordMax=max(yCoord);"
"CoordMax=max(xCoordMax, yCoordMax);"
"r=sqrt(pow(xCoord, 2) + pow(yCoord, 2));"
);
expression "(1-pow(r / CoordMax, 2)) * 2 * Uavg * vector(0, 0, -1)";
}
);
}
// ************************************************************************* //
https://cdn.discordapp.com/attachments/814043123810304041/1409900953087508488/image.png?ex=68af1015&is=68adbe95&hm=3cae348eadcacd2fcbd115c7b6c15442c45cb6212d4f41bee626306dcee4432b&Moose
08/26/2025, 2:13 PMfinn
08/26/2025, 2:16 PMMairon
08/31/2025, 2:14 PMinlet
{
type codedFixedValue;
value uniform (0 0 0);
name parabolicProfile;
code
#{
const fvPatch& boundaryPatch = patch();
vectorField& field = *this;
scalar H = 0.41; // Total height
scalar Umax = 1.5; // Re = 100
forAll(field, i)
{
scalar y = boundaryPatch.Cf()[i].y(); // Get y-coordinate of face center
scalar yShifted = y + 0.2; // Shift y to start from 0
field[i] = vector( 4 * Umax * (yShifted * (H - yShifted) / (H * H)), 0, 0);
}
#};
}
Moose
08/31/2025, 5:24 PMotaolafr
09/01/2025, 7:15 AMvalue uniform (foamFind(Ux,filePath) 0 0)
?
should I simply sed the thing directly using bash?
I am having a lot of trouble with this, not that i can am not able of doing my simulation, but i can not find a 'clean' way to do it, and then the hole folder with all the simulations in a parametric study that i re runned several times becomes really hard to find 'what i changed'/'what this simulation was for'.
currently my workflow is:
1. master bash script where i loop over a list of a variable
2. master script copies base case folder and seds the variable to change in respective file (such as 0.orig/U)
3. runs the ./Allrun of the copied case folder.
i did in the past also:
1. master bash script where i loop over a list of a variable
2. master script copies base case folder and seds the variable to change in a variables.sh file inside the copied case folder
3. runs the ./Allrun which itself reads the variables.sh file and changes respectibly the desired file, (such as 0.orig/U) and then runs the simulation
the second i would say is a little bit 'cleaner' but by any means clean.
the first makes more complex the master script, where the second the Allrun
i would like (if exist, but doubt since i never saw it used in foam files) do something in the middle, where the files would 'look for' on the variables.sh file and have a default value.
or other people around do it in a different way? it gets convoluted quite fast and would like to clean my workflow. maybe using python? i dont know... just curious what others do heremuehhlllerr
09/01/2025, 7:35 AMotaolafr
09/01/2025, 7:39 AMkandelabr
09/01/2025, 8:06 AMotaolafr
09/01/2025, 8:15 AMfinn
09/02/2025, 1:20 PMecs.Q().rmap(Region::CONDUCTOR);
ecs.Q().mapInternalField(Region::THERMAL);
//fvc::extrapolate(ecs.Q()[Region::THERMAL]);
I have this mapping of region fields
The fields overlap, but when doing extrapolate I get floating point errors, I am also not so sure if I need to extrapolate as mentioned they overlap, and the values are cellCentered for instance this is volumetric heating W/m^3qr
09/02/2025, 7:54 PMqr
09/02/2025, 7:55 PMMoose
09/08/2025, 6:58 PMMoose
09/08/2025, 7:03 PMEuge
09/09/2025, 9:37 AMmuehhlllerr
09/15/2025, 8:43 AM