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

Customized code based on DieselEngineFoamSolver, always getting segmentation fault

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 3, 2009, 05:26
Default Customized code based on DieselEngineFoamSolver, always getting segmentation fault
  #1
Member
 
Join Date: Jun 2009
Posts: 36
Rep Power: 16
dipling is on a distinguished road
Hello,

i am still working/searching for a good solution for MeshMoving. I figured out that the Cut/adding-cell algorithm can be find in the LayerAR.C (with its baseclasses).
For testing I took the DieselEngineFoamSolver with "EngineTopoChangerMesh.H" (instead of EngineMesh.H) and "CreateEngineDynmiacMesh.H" (instead of CreateEngineMesh.H).

For the first loops (crank angle -180 - (-170.5)) all is done fine. But then the solver gives the following message when the crank angle exactly reaching -170:

Code:
deformSwitch 20
INFO 0
PistonDeformation0
Piston layering mode
01
1
MinLayerThickness 0.003
Segmentation fault
Normally there is :
Code:
deformSwitch 20
INFO 0
PistonDeformation0
Piston layering mode
01
1
MinLayerThickness 0.003
2
3
3
....
In the source code at this point: (layerAR.C)

Code:
Info << "1" << endl;
Info << "MinLayerThickness " << minLayerThickness << endl;
autoPtr<mapPolyMesh> topoChangeMap = topoChanger_.changeMesh();
 
Info << "2"
For me it seems to be a memory error ? I am not the C++ pro, just basic solid skills.

I would be very happy anybody can help me! Any have fun to decrypt my Enlish
dipling is offline   Reply With Quote

 


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
how can I get rid of segmentation fault sabuj Fluent UDF and Scheme Programming 4 July 3, 2016 05:46
DPM Segmentation Fault in UDF jhlee9622 FLUENT 0 July 1, 2016 03:21
DPM_Heat_MASS, Segmentation fault error herr010 Fluent UDF and Scheme Programming 0 July 22, 2015 04:24
Segmentation Fault caused by a pointer floquation OpenFOAM Programming & Development 1 October 17, 2014 11:43


All times are GMT -4. The time now is 09:02.