|
[Sponsors] |
May 24, 2021, 18:09 |
problem of using setExprFields
|
#1 |
Senior Member
|
Hi guys,
Due to the fact that swak4foam could not be installed on the cluster (most of the libraries were compiled but funkySetFields cannot be found), as shown in following: Code:
/cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++:5: /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW: No such file or directory make: *** No rule to make target `/cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW'. Stop. /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++:5: /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW: No such file or directory /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++:5: /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW: No such file or directory /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++:5: /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW: No such file or directory make: *** No rule to make target `/cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW'. Stop. wmake error: file 'Make/linux64IccDPInt32OptBDW/sourceFiles' could not be created in /galileo/home/userexternal/qyang001/OpenFOAM/qyang001-v1912/swak4Foam/Utilities/makeAxialMesh Code:
libEulerianInterfacialSedModels.so libEulerianPpSedModels.so libgranularRheologySedModel.so libgroovyBC.so libgroovyStandardBCs.so libkineticTheorySedModel.so libmyturbulenceModels.so libsimpleCloudFunctionObjects.so libsimpleFunctionObjects.so libsimpleLagrangianFunctionObjects.so libsimpleRegionSolvers.so libsimpleSearchableSurfaces.so libsimpleSwakFunctionObjects.so libswak4FoamParsers.so libswakChemistryModelFunctionPlugin.so libswakCloudFunctionObjects.so libswakCoalCloudAdaptor.so libswakDynamicMeshFunctionPlugin.so libswakDynamicMesh.so libswakFacSchemesFunctionPlugin.so libswakFiniteArea.so libswakFunctionObjects.so libswakFvcSchemesFunctionPlugin.so libswakFvOptions.so libswakGeneralLanguageIntegration.so libswakLagrangianCloudSourcesFunctionPlugin.so libswakLagrangianParser.so libswakLocalCalculationsFunctionPlugin.so libswakLuaIntegration.so libswakMeshQualityFunctionPlugin.so libswakMeshWaveFunctionPlugin.so libswakMRFFunctionPlugin.so libswakPython3Integration.so libswakPythonIntegration.so libswakQuantileFunctionPlugin.so libswakRadiationModelFunctionPlugin.so libswakRandomFunctionPlugin.so libswakScriptableLagrangian.so libswakShiftFieldFunctionPlugin.so libswakSourceFields.so libswakStateMachine.so libswakSurfacesAndSetsFunctionPlugin.so libswakThermoTurbFunctionPlugin.so libswakTopoSources.so libswakTransportTurbFunctionPlugin.so libswakVelocityFunctionPlugin.so libtwoPhaseModel.so libtwoPhaseTurbulenceModels.so The following scripts are only available for funkySetFieldsDict so how to transfer the right style into setExprFields. Thanks a lot. Code:
expressions ( sedimentvelocity { field Ua; //field to initialise fields ( z Ua ); lookuptables ( { name inletprofilesedvel; outOfBounds clamp; file "$FOAM_CASE/1d_profil/Ua0.xy"; } { name inletprofilesedvelv; outOfBounds clamp; file "$FOAM_CASE/1d_profil/Ua2.xy"; } { name inletprofilesedvelw; outOfBounds clamp; file "$FOAM_CASE/1d_profil/Ua1.xy"; } ); value uniform (1 0 0); expression "vector(inletprofilesedvel(pos().z),inletprofilesedvelv(pos().z),inletprofilesedvelw(pos().z))"; keepPatches 1; } fluidvelocity { field Ub; //field to initialise fields ( z Ub ); lookuptables ( { name inletprofilefvel; outOfBounds clamp; file "$FOAM_CASE/1d_profil/Ub0.xy"; } { name inletprofilefvelv; outOfBounds clamp; file "$FOAM_CASE/1d_profil/Ub2.xy"; } { name inletprofilefvelw; outOfBounds clamp; file "$FOAM_CASE/1d_profil/Ub1.xy"; } ); value uniform (1 0 0); expression "vector(inletprofilefvel(pos().z),inletprofilefvelv(pos().z),inletprofilefvelw(pos().z))"; keepPatches 1; } alpha { field alpha_a; //field to initialise fields ( z alpha ); lookuptables ( { name inletprofilealpha; outOfBounds clamp; file "$FOAM_CASE/1d_profil/alpha_a.xy"; } ); expression "inletprofilealpha(pos().z)"; keepPatches 1; } pb { field p_rbgh; //field to initialise fields ( z p_rbgh ); lookuptables ( { name inletprofilepb; outOfBounds clamp; file "$FOAM_CASE/1d_profil/p_rbgh.xy"; } ); expression "inletprofilepb(pos().z)-3.998*(pos().x-0.8)"; keepPatches 1; } k { field k; //field to initialise fields ( z k ); lookuptables ( { name inletprofilek; outOfBounds clamp; file "$FOAM_CASE/1d_profil/k.xy"; } ); expression "inletprofilek(pos().z)"; keepPatches 1; } omega { field omega; //field to initialise fields ( z omega ); lookuptables ( { name inletprofileomega; outOfBounds clamp; file "$FOAM_CASE/1d_profil/omega.xy"; } ); expression "inletprofileomega(pos().z)"; keepPatches 1; } ); |
|
May 25, 2021, 16:15 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Hi,
A good-quality documentation about "expressions" can be found here. Hope this helps for your code transformation.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
Tags |
setexprfields, swak4foam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 05:37 |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 06:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |