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

problem of using setExprFields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2021, 18:09
Exclamation problem of using setExprFields
  #1
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
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
In the user's lib, it includes already following src:
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
Since I spent much time on this fact, I decided to use "setExprFields" which should be a similar function to funkySetFields. However, I failed to set that file. Could you please give me some suggestions regarding both issues?
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;
        }
 );
qi.yang@polimi.it is offline   Reply With Quote

Old   May 25, 2021, 16:15
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Hi,

A good-quality documentation about "expressions" can be found here.

Hope this helps for your code transformation.
HPE is offline   Reply With Quote

Reply

Tags
setexprfields, swak4foam


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
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


All times are GMT -4. The time now is 04:53.