|
[Sponsors] |
Problems with Combination of codedFixedValue // readProbe |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 1, 2024, 06:43 |
Problems with Combination of codedFixedValue // readProbe
|
#1 |
New Member
Join Date: Jul 2021
Posts: 2
Rep Power: 0 |
Hello everyone,
I am trying to set an inlet boundary condition depending on the overflow velocity. For this I use the type codedFixedValue in the file 0/U: INLET { type codedFixedValue; value uniform (0 0 0); name rampedFixedValue; { #{ const scalar Sc = 1.0; const scalar p_d = 101325; [...] vector u1 = readProbe("system/probes", 0, vector(0, 0, 0.001), "U"); scalar m_flow = 4.46e-3 * Foam:ow(Sc, -0.67) * Foam:ow(mag(u1), 0.78) * Foam:ow(r, -0.11) * (p_d * M * A / (R * T)); scalar U_mag = m_flow / (rho * A); // Setze U-Wert vector U_value = vector(0, 0, U_mag); operator==(U_value); #}; } } The size u1 is to be determined from the file system/probes at each time step. system/probes FoamFile { version 2.0; format ascii; class dictionary; object probes; } // Probenposition über Patch LACHE in z=0.1 cm fields ( U ); probeLocations ( (0 0 0.001) // Koordinaten des Punktes über dem Patch LACHE in z=0,1 cm ); // ************************************************** *********************** // However, I receive the following error message: --> FOAM FATAL IO ERROR: Failed wmake "dynamicCode/rampedFixedValue/platforms/linux64GccDPInt32Opt/lib/librampedFixedValue_c0c0b359c41d0db4a18d7e5891c471 dca9c8315e.so" file: /home/X/OpenFOAM/X-12/run/SIM_5_codedFixedValue/0/U/boundaryField/INLET from line 55 to line 60. From function void Foam::codedBase::createLibrary(Foam::dynamicCode&, const Foam::dynamicCodeContext&) const in file db/dynamicLibrary/codedBase/codedBase.C at line 235. FOAM exiting I am using OpenFOAM version 12, do you have any ideas? Thank you very much |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ANSYS has problems with EPYC 7742 CPU!!! | kuk06 | Hardware | 0 | May 6, 2023 03:47 |
How much does the source code for this turbulent flow CFD code worth in US $? | Dr Youssef Hafez | Main CFD Forum | 43 | January 4, 2023 02:13 |
Why Laplacian is used instead of a combination of divergence and gradient operators? | HakikiCanakkaleli | OpenFOAM Programming & Development | 3 | September 26, 2019 08:40 |
Needed Benchmark Problems for FSI | Mechstud | Main CFD Forum | 4 | July 26, 2011 13:13 |
problems with heatflux/buoyant Boussinesq combination | sven82 | OpenFOAM | 0 | January 11, 2011 11:03 |