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

The force monitoring of multiple objects

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2022, 00:34
Default The force monitoring of multiple objects
  #1
New Member
 
Runxin Luo
Join Date: Mar 2022
Posts: 1
Rep Power: 0
q384861953 is on a distinguished road
When i monitor the force coefficient of multiple objects,it prompts me this error “Failed to store pointer: force. Risk of memory leakage”,whether i use mpi or single core operation.


The error is represented as follows:
Quote:
--> FOAM FATAL ERROR: (openfoam-2112)
Failed to store pointer: force. Risk of memory leakage


From static Type& Foam::regIOobject::store(Type*) [with Type = Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>]
in file /home/luorunxin/OpenFOAM/OpenFOAM-v2112/src/OpenFOAM/lnInclude/regIOobjectI.H at line 67.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::simpleExit(int, bool) at ??:?
#2 Foam::error::exiting(int, bool) at ??:?
#3 Foam::functionObjects::forces::read(Foam::dictiona ry const&) at ??:?
#4 Foam::functionObjects::forceCoeffs::read(Foam::dic tionary const&) at ??:?
#5 Foam::functionObjects::forceCoeffs::forceCoeffs(Fo am::word const&, Foam::Time const&, Foam::dictionary const&, bool) at ??:?
#6 Foam::functionObject::adddictionaryConstructorToTa ble<Foam::functionObjects::forceCoeffs>::New(Foam: :word const&, Foam::Time const&, Foam::dictionary const&) at ??:?
#7 Foam::functionObject::New(Foam::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?
#8 Foam::functionObjects::timeControl::timeControl(Fo am::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?
#9 Foam::functionObjectList::read() at ??:?
#10 Foam::Time::run() const at ??:?
#11 Foam::Time::loop() at ??:?
#12 Foam::simpleControl::loop() at ??:?
#13 ? in ~/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/bin/simpleFoam
#14 __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#15 ? in ~/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/bin/simpleFoam
[1] 25724 abort (core dumped) simpleFoam > test_double.log
The code is presented as follow:

Quote:
forceCoeffs1

{

type forceCoeffs;

libs ("libforces.so");

patches (solarpan0);

log true;

rho rhoInf;

rhoInf 1.225;

// Include porosity effects?
porosity false;

// Store and write volume field representations of forces and moments
writeFields yes;

CofR (0 0 0);

liftDir (0 0 1);

dragDir (1 0 0);

pitchAxis (0 0 1);

magUInf 40;

lRef 1;

Aref 2;

writeControl timeStep;

writeInterval 1;

}

forceCoeffs2

{

type forceCoeffs;

libs ("libforces.so");

patches (solarpan0_21);

log true;

rho rhoInf;

rhoInf 1.225;

// Include porosity effects?
porosity false;

// Store and write volume field representations of forces and moments
writeFields yes;

CofR (0 0 0);

liftDir (0 0 1);

dragDir (1 0 0);

pitchAxis (0 0 1);

magUInf 40;

lRef 1;

Aref 2;

writeControl timeStep;

writeInterval 1;

}
Tips and/or solution are highly appreciated !

Last edited by q384861953; March 19, 2022 at 21:44.
q384861953 is offline   Reply With Quote

Old   May 25, 2022, 09:29
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: 932
Rep Power: 12
HPE is on a distinguished road
please use "useNamePrefix" entry

Last edited by HPE; May 26, 2022 at 04:35.
HPE is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Offset on the force derived for each cylinder composing a float ConstanceC OpenFOAM Post-Processing 0 October 14, 2020 04:29
Hydrodynamic force? arun7328 STAR-CCM+ 24 July 25, 2020 05:04
udf for compute pressure drag force fatemi Fluent UDF and Scheme Programming 1 January 26, 2018 14:27
force acting on moving objects amin.torabi FLOW-3D 1 November 3, 2017 04:14
Inserting Boundary Layers in multiple objects in Gambit for use in FLUENT 3quarters FLUENT 0 July 16, 2010 09:55


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